How To Get Full Url From Address Bar
- Forums
- PHP
- How To Get Full Url From Address Bar
Want To Know How To Get The Full Url From The Address Bar Using Php So I Can Use It On My Php Code [2055], Last Updated: Mon Jun 24, 2024
Huilom
Mon Oct 26, 2009
2 Comments
494 Visits
thanks for your previous help on other posts. but now i have a challenge that i have not been able to resolve. i am writing a php script and i am required to get the full url from the current page. and not the domain only like using the hostname, but rather the whole url. can you help me get complete url in php? if i can get the get full path using php that would be very helpful. i know its probably easy like getting it from the server path or using javascript, but i want to use php because the script i am using i have to use a string. anyways, thanks in advance. i looked everywhere in php.net to see if a function exists that i can use to grab the url from the browsers address bar, so if you know of any function or class, let me know
meawhile, if anyone has a custom function please post it here. i had one, so ill look for it