php like cgi
| From: | Ulysses Almeida | Date: | Mon, 16 Apr 2001 20:40:20 +0000 |
| Subject: | php like cgi | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48807@lists.php.net to get a copy of this message | ||
Hi..
I'm tring to use a php-script like cgi, but the only thing i got is
"Internal Server Error..."
That's my test-script..
-----------------------------------------------------------
#!/bin/php -q
<?php
echo "Content-type: text/html\n\n";
echo "Hello World!\n";
?>
----------------------------------------------------
I tried whithout "-q" and "echo "Content-....", but i got the same
error!
That's my httpd_error.log
-----------------------------------------------------
[Mon Apr 16 17:19:24 2001] [error] [client 127.0.0.1] Premature end of
script headers: /home/httpd/cgi-bin/teste.cgi
----------------------------------------------------
How can i do it? I have bash, perl, C, cgis working here, just my
php-script dosn't work.
Before asking, Yeah, i need to exec it like cgi, 'cos that was the only
way that i find to use posix_setuid().
Thanks...
[]s
.~. Ulysses Almeida
/ V \ munky@maluco.com.br
/ ( ) \ Seja livre, use GNU/Linux!
^^-^^