in reply to Re: Re: php style includes
in thread php style includes
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:
@INC stuffuse lib ("/home/myusername/perl-lib");
If you're absolutely intent on not using any modules, try implementing you own handler:
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 ideafor (@page) { s/include\("([^"]+)"\)//;print; if(open F $1){while(<F>){print}} }
|
|---|