note 12235 deleted from language.constants by vincent
| From: | vincent@php.net | Date: | Sun, 21 Sep 2003 09:59:10 +0000 |
| Subject: | note 12235 deleted from language.constants by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56848@lists.php.net to get a copy of this message | ||
Note Submitter: pierre.delandsheere@rug.ac.be.NOSPAM
----
If you use $PHP_SELF in forms or in places where a script has to reload itself, you will get the
full path relative to the web root. This is very useful because it will always work, even if you
move your script around on the server. You don't need to mess around with absolute or relative
paths. An example would be:<br><br><form method=POST
action=$PHP_SELF?do_something> or<br><a href=$PHP_SELF?do_something>Make script do
something</a>