Re: CGI-executable Apache
| From: | Victor | Date: | Mon, 05 Jun 2000 18:13:51 +0000 |
| Subject: | Re: CGI-executable Apache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1073@lists.php.net to get a copy of this message | ||
Here is the output
[234]# ./test.cgi
X-Powered-By: PHP/4.0.0
Content-type: text/html
Hello World
[235]#
Matt Spong wrote:
> Make sure that the HTTP headers are being printed properly. At the very least:
> Content-type: text/html
> with 2 newlines after it, and then the content from your page.
>
> Matt
>
> > Well, it still does not work. The cgi version of php just doesn't seem to
> > get results out properly. Is there some switch I can set for more info/error
> > messages?
> >
> > My test.cgi works from command line when I am logged in and webadmin and
> > when I am logged in as nobody. However, when I call it from apache, it says
> > "Premature end of script headers: /data/www/stonecare/cgi-bin/test.cgi"
> >
> > Any input still helpful. here is my test.cgi:
> >
> > #!/opt/apache/bin/php
> > <?php print "Hello World\n"; ?>
> >
> > Thanks
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Matt Spong <spong@baked.net> www.wam.umd.edu/~spong
> Author and maintainer of PowerShell: powershell.sourceforge.net
> UM Linux Users Group Secretary/Webmaster: www.umlug.org
> AIM: Spong1027 ICQ: 74069183
> GPG Public Key: finger spong+@glue.umd.edu
> --------------------------------------------------------------------------
> "Those who desire to give up freedom in order to gain security, will not
> have, nor do they deserve, either one." -Thomas Jefferson
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature