Forum Moderators: coopster

Message Too Old, No Replies

Arg page url

$phpself

         

bobnew32

11:05 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



Ok i've been using the variable $PHP_SELF from the current page url for my own purposes (gets sent to a login script and after they're logged in it'll redirect back to the url sent in the beginning). The problem is that if I use $PHPSELF, it only returns the single script name /directory/index.php and not /directory/index.php?selection=apple&page=view . Is there any other way I can easily get the page url without constructing it myself?

jatar_k

11:25 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would think $_SERVER['REQUEST_URI'] would do it but if not

PHP Predefined Variables [ca.php.net]

There are a bunch of vars there like
'QUERY_STRING'