RE: [PHP] how to reload a PHP page via PHP code
| From: | Jay Blanchard | Date: | Fri, 14 Apr 2006 16:00:54 +0000 |
| Subject: | RE: [PHP] how to reload a PHP page via PHP code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-233993@lists.php.net to get a copy of this message | ||
[snip]
I would like to know if it exist a method to reload a PHP page via PHP
code
?
the topic behind is that i do not want to specify the PHP page to
reload.
It must reload the actual page only.
for example, if use views the page : test.php and click on US flag
image.
PHP should reload this page with US language...but i do not want to
write in
hardcoding the page name, because this function should be usefull for
all
pages.
[/snip]
Just how much time do people spend reading the manual?
There is a pre-defined variable called $_SERVER['PHP_SELF'] you may also
want to look at things like basepath etc.