Here's what is happening:
I have a php script which runs fine from the command line, and via the web. I'd like to call the script from a perl cgi, to get the results (it's ugly, but would be a simple solution to our problem) of it.
What happens is very strange. At the point where the php script is supposed to execute, basically, the entire contents of the script are printed out (the script didn't execute) and the perl script seems to bomb out as well. So on the web page, i see the entire source code to the php script, and also some code from the perl script. It's really bizarre.
Any ideas on what is causing this? I'm fairly experienced at perl, cgi, etc., and have tried many tricks to see what might work.