Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php4.cgi bugs

anyone used this before?



11:08 pm on Feb 8, 2002 (gmt 0)

10+ Year Member

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.

<? print "hello"; ?>

The problem is I can't execute any php4.cgi script from another web script: i.e. calling PHP from 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...



4:57 pm on Feb 9, 2002 (gmt 0)

10+ Year Member

I must first say I have not spent much time with perl, so I don't know whats up with the system call.

It looks to me that as a cgi-bin "Hello" it works but in your Document root it does not.

Can you call myfile.php direct from your browser? If so I don't think I can help. If not you may need to move it to your cgi-bin to get it to work.

The php.ini file can be restictive as to where files can be called from.


5:50 pm on Feb 9, 2002 (gmt 0)

10+ Year Member

Yeah, it works directly from the browser... that's why I think its a bug!

Thanks for the help anyway ;)


Featured Threads

Hot Threads This Week

Hot Threads This Month