Reply
returning full path in php
Old 03-23-2006, 07:00 PM returning full path in php
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
i'm trying to return the full path of a page but $_SERVER['PHP_SELF'] will return the script name only.
i need the url displayed in the address bar and not the location of the script itself as it is included from a different url.


cheers
__________________
thatVilla.com - private villas direct from the owners - travel links always needed.
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
When You Register, These Ads Go Away!
     
Old 03-23-2006, 11:44 PM Re: returning full path in php
Junior Talker

Posts: 1
PHP Code:
<?php
echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
?>
Is this what your looking for?

Last edited by nathanj : 03-24-2006 at 02:45 AM.
nathanj is offline
Reply With Quote
View Public Profile
 
Old 03-25-2006, 12:27 PM Re: returning full path in php
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
awesome - cheers nathanj
__________________
thatVilla.com - private villas direct from the owners - travel links always needed.
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Reply     « Reply to returning full path in php
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12536 seconds with 13 queries