in reply to executing a PHP script from my perl program.

I'm guessing from the special variable names that your PHP script is expecting to be run as a CGI request handler, but you didn't setup a CGI environment.
  • Comment on Re: executing a PHP script from my perl program.