[San-Diego-pm] Using a PHP script as a function

Joel Fentin joel at fentin.com
Mon Aug 9 21:47:03 PDT 2010

I have a perl program and I am trying to use a PHP script as a 
function. That is to say that my perl program passes data to it 
and it returns data. I have not been able to get it to run, let 
alone return data.

If you take:
and put it in Firefox, it returns data which is displayed.

First I tried 20 variations of:
my $cmd = 'php 
my $Stuff = `$cmd`;
die "|$Stuff|";

It not only doesn't return data, but it doesn't seem to run the PHP.


I also tried:
my $xxx = 
die "|$xxx|";

just to see if I could get it to run. I could not.


I also tried:
print "Content-type: text/html\n\n";


I've run out of ideas and nothing I Googled seemed to help.
Suggestions please.

Joel Fentin       tel: 760-749-8863
Biz Website:      http://fentin.com
Personal Website: http://fentin.com/me

More information about the San-Diego-pm mailing list