My provider does not have command line PHP, I need to use a wrapper (php4.cgi). I can generate static HTML pages from PHP scripts that way. #!/usr/www/cgi-bin/php4.cgi <? print "hello"; ?>
The problem is I can't execute any php4.cgi script from another web script: i.e. calling PHP from Perl. #!/usr/bin/perl system ('./myfile.php' );
I've spent ages debugging it, trying all possible combinations, and php4.cgi ALWAYS dumps core when executed from perl under nobody. It's not a problem with permissions, other identical scripts work, just not php4.cgi!
Has anyone got this configuration? Do you have this sort of problem? I'd like to resolve this as any alternatives to the problem I can think of involve a lot of recoding...