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 \ [EMAIL PROTECTED]
/ ( ) \ Seja livre, use GNU/Linux!
^^-^^
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]