Welcome to WebmasterWorld Guest from 54.144.39.30

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Executing PHP in PERL

How do I do this?

     
1:38 am on Feb 3, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Mar 8, 2005
posts:234
votes: 0


Can PHP be executed within a web document created by a PERL CGI script?

How does one accomplish this?
Can anyone provide a checklist?

Thanks

2:18 am on Feb 3, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:June 21, 2003
posts:199
votes: 0


edit reason - sorry misunderstood question
8:04 am on Feb 3, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


The answer is yes, but more details are needed.

If you want a Perl script to execute a PHP script that's on the same server, then you can call it using the system() function, or something similar.

If they're on different servers, then the Perl code needs to hit the URL of the PHP script and print the output.

Or if you mean can a Web *document* execute a PHP script, regardless of whether or not it was generated by Perl, then you can use any method that will let you include an external URL, like <iframe>.