Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] passing an argument in includes

Quote Reply
Re: [Andy] passing an argument in includes In reply to
My php path is the same as yours, however, all you have to put is "php"... you don't need the "/usr/bin/php"...

Also you cannot return a system command... That is what the `` are for...

So I changed it to

Quote:


'php' => 'sub {
my $url = $_[0];
my $script = `php $url -1`;
return $script;
}',


Thats all I need apparantly... I plan on editing it when I get the time use ssi for html pages or even php for php pages (like on my banner scirpt)... and I am going to add your if statements back to use lwp.

But for the simplest purposes... thats how you include php in perl... you call it by

<%php('path to your php file')%>

Thanks for the suggestions and help,
I will probably post the final script once I complete it.

- Jonathan
Subject Author Views Date
Thread passing an argument in includes jdgamble 3603 Jul 29, 2004, 8:10 PM
Thread Re: [jdgamble] passing an argument in includes
Andy 3478 Jul 30, 2004, 12:52 AM
Thread Re: [Andy] passing an argument in includes
jdgamble 3497 Jul 30, 2004, 3:13 AM
Thread Re: [jdgamble] passing an argument in includes
Andy 3521 Jul 30, 2004, 6:01 AM
Thread Re: [Andy] passing an argument in includes
jdgamble 3488 Jul 30, 2004, 12:52 PM
Post Re: [jdgamble] passing an argument in includes
jdgamble 3447 Aug 5, 2004, 10:30 AM
Post Re: [jdgamble] passing an argument in includes
Suomi 3379 Nov 28, 2004, 6:23 AM