Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: php style includes

by bastard (Hermit)
on Jul 03, 2001 at 03:32 UTC ( [id://93360]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: php style includes
in thread php style includes

if you have the ability to create a .pl file and directories on the server then you can use really any module.

I never bother my hosting provider with module installs, instead I have a perl-lib dir in my home directory with around 5 megs of modules. You just need to add the path to your perl files. I use something like this:

use lib ("/home/myusername/perl-lib");
@INC stuff
Use Lib() and require
perlman:lib:lib

If you're absolutely intent on not using any modules, try implementing you own handler:

for (@page) { s/include\("([^"]+)"\)//;print; if(open F $1){while(<F>){print}} }
this one should work with php style tags (what you showed). it's incredibly insecure and would miss alot, and may not even work, but it demonstrates the idea

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://93360]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found