You are here: bad PHP documentation and how to pass args alternatively « PHP Programming Language « IT news, forums, messages
bad PHP documentation and how to pass args alternatively

Posted by mmaenz on 02/25/06 20:29

Hi,

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
$_SERVER['xxx'] from.
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
won't work.
But with HTTP POST or PUT, (with files for example), I need another way
to
pass arguments to php. I tried stdin, had no luck.

My webserver only supports GET with PHP at the moment, but Scripts use
GET /
POST / PUT.

Early versions of PHP generated their HTTP Response Header
automatically.
Newer Versions don't do. Is there any special argument for php (
-with_header, or
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!
It
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
the
script generates any errors, i want them to be reported on stderr in
order
to display an alternative page as errorpage. In my opinion, the PHP
errors
are giving away to much Information about the server and his structure.


Any help is really welcome!!

thx in advance
- Michael

_____________________________________________________________________
Linux is Luke. FreeBSD is Yoda.
--Anonymous

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация