Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 25, 2006, 6:29 pm
rate this thread
I wrote a Webserver by my own and I would like to support php.
But I can't find any information about where php gets the information
At the moment, I pass all arguments as parameter to the call to php
php -f index.php p1=xx p2=xx ... and so on. But the $_SERVER parameter
But with HTTP POST or PUT, (with files for example), I need another way
pass arguments to php. I tried stdin, had no luck.
My webserver only supports GET with PHP at the moment, but Scripts use
POST / PUT.
Early versions of PHP generated their HTTP Response Header
Newer Versions don't do. Is there any special argument for php (
so) or only the option with generating own header in the script? Most
scripts don't do that and therefore don't work on the basis of HTTP1.1!
may works but isn't very good.
Are all Errors put out on stdout? I never get any errors on Stderr. PHP
always put's out the errors on stdout. And that sucks really hard. If
script generates any errors, i want them to be reported on stderr in
to display an alternative page as errorpage. In my opinion, the PHP
are giving away to much Information about the server and his structure.
Any help is really welcome!!
thx in advance
Linux is Luke. FreeBSD is Yoda.
Re: bad PHP documentation and how to pass args alternatively
variables and their values using the 'env' command; on Windows, you can
use 'SET'. Both OSs provide means to obtain environment variables and
their values programmatically.
No, they are written into stderr.
Of course. It is very useful during debugging. And, moreover, you can
turn error display off (recommended on production servers).