Reply to Re: _GET/_POST vars passed to PHP how?

Your name:

Reply:


Posted by Gordon Burditt on 07/20/05 22:59

>Are these passed by the webserver to PHP using
>commandline arguments or by environment variable?

If PHP is run as an Apache module, it's done via some kind of
internal interface, and unless you're writing your own modules,
you shouldn't need to care.

If PHP is run as a CGI, it's done by the interface defined by CGI:
GET variables show up in environment variables (the CGI has to
separate them), and PUT variables are available on stdin (again,
the CGI has to separate them). Environment variables indicate
whether this is GET or PUT and how much input is available on
stdin.

If PHP is run from the command line, the variables are generally
not passed at all, and there may be no web server involved at all.

Gordon L. Burditt

[Back to original 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

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