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

From: Date: Fri, 05 Jan 2001 06:10:58 +0000
Subject: Re: #!/path/to/php at top of output from CGI
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-32828@lists.php.net to get a copy of this message
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

« previous php.general (#32828) next »