Re: #!/path/to/php at top of output from CGI -- works!

From: Date: Fri, 05 Jan 2001 07:05:12 +0000
Subject: Re: #!/path/to/php at top of output from CGI -- works!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-32833@lists.php.net to get a copy of this message
Thank you! It was --enable-discard-path I recompiled (I untarred a new php src dir just to make sure nothing old was around) with enable discard path. Also, I realized that you can't have --enable-force-cgi-redirect in as well, that is only it you want it in web-accessable. I will see if I can make the docs a little more clear, so others don't have problems in this regard. Thanks again! Regards, Jeff Davis On Thu, 04 Jan 2001, you wrote: > It sounds like you may not have added: --enable-discard-path to your > configure line when you compiled the binary. > > Maybe you could save the output of the phpinfo call to a plain .html file > and put it up somewhere - it might give some hints. > > jason > > > ----- Original Message ----- > From: "Jeff Davis" <jdavis@wasabimg.com> > To: "Jason Brooke" <jason@qgl.org> > Cc: <php-general@lists.php.net> > Sent: Friday, January 05, 2001 3:56 PM > Subject: Re: [PHP] #!/path/to/php at top of output from CGI > > > > If i add the -q option it just says "No input files specified" under CGI > and > > at the shell outputs as expected, minus the headers. > > > > The php.cgi script follows: > > #!/usr/local/bin/php > > <? phpinfo(); ?> > > > > That's all I have in the file; just used for testing. You're right, it > does > > look like the file is being interpreted early, but I have no idea how/why. > > Also, if I remove the part at the top I get an internal server error, so > it is > > not as if I don't need it. I really appreaciate all your advice. I am just > > completely bewildered here...I have been messing with this for way too > long. > > > > Regards, > > Jeff Davis -- Jeff Davis jdavis@dynworks.com http://dynworks.com

« previous php.general (#32833) next »