Hi, I hope I'll be able to explain what I want. I have a webpage, say http://www.mydomain.com/page1.php/ . What code (command) to insert in page's code to find the address of page? This need to know the addres of page is common for many other webpages, this is the reason I want to use a php script that can make it on its own. Advanced thanks for your time and attention Interval
Hi, you can use the following: $scripturl = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"]; PHP:
Not quite. $_SERVER['SCRIPT_NAME'] holds the name of the current script, but not the actual query string or final slash (as it shows in your URL). You may want to use $_SERVER['REQUEST_URI'] instead. (which will hold anything after your server name to the end of the query string).
That's right... but it can also be a problem, if you want to call the same script, passing different arguments