homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

php4.cgi bugs
anyone used this before?

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

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)

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)

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

Thanks for the help anyway ;)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved