|
Posted by Jonathan N. Little on 02/12/07 21:42
Rik wrote:
> Jonathan N. Little wrote:
>> More typically:
>>
>> <?php echo $_SERVER['PHP_SELF']; ?>
>>
>> or
>>
>> <?php echo 'http://' .$_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; ?>
>
>
> Depends. I've had better results with the REQUEST_URI, as it's
> definitely the request coming in, rather then where the user ended up
> after possible rewriting etc.
If rewriting is involved the final destination will be this script, no?
> I'd rather the user still saw his entered
> URL then for instance a whole bunch of GET variables working behind the
> scene.
Well maybe if this is a GET rather than POST and you have some rewrite like:
www.example.com/script/param1/param2
www.example.com/script.php?p1=param1&p2=param2
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|