Click to See Complete Forum and Search --> : Can a Perl script have a PHP script inside it?


Mike Burdick
10-08-2005, 09:53 PM
Can a Perl script have a PHP script inside it?

Thanks...

Mike

Nedals
10-09-2005, 10:00 PM
My first reaction would be no, but it MIGHT be possible to call a .php script using..

LWP::UserAgent
http://search.cpan.org/search?query=lwp%3A%3AUserAgent&mode=all

You will likely have to mess around with the 'response' to get what you want.

Mike Burdick
10-10-2005, 02:16 AM
Nedals,

I guess it doesn't sound too promising.

Thanks for the help...

Mike

shiraz
10-10-2005, 02:46 AM
you could also use smthing like this in PERL:

use PHP::Include;
include_php_vars( 'file.php' );

see : http://search.cpan.org/~esummers/PHP-Include-0.2/lib/PHP/Include.pm