Reply to Re: Variable Behavior

Your name:

Reply:


Posted by SUtrap on 04/11/07 10:43

http://de.php.net/reserved.variables

> _SERVER["SCRIPT_NAME"] /phpinfo.php
It's the path for the actual script.
'SCRIPT_NAME'
Contains the current script's path. This is useful for pages which
need to point to themselves. The __FILE__ constant contains the full
path and filename of the current (i.e. included) file.

> _SERVER["PHP_SELF"] /phpinfo.php
'PHP_SELF'

The filename of the currently executing script, relative to the
document root. For instance, $_SERVER['PHP_SELF'] in a script at the
address http://example.com/test.php/foo.bar would be /test.php/
foo.bar. The __FILE__ constant contains the full path and filename of
the current (i.e. included) file.

If PHP is running as a command-line processor this variable
contains the script name since PHP 4.3.0. Previously it was not
available.

[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

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