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
'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
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