Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Current url
May 2, 2007, 9:17 pm
rate this thread
Re: Current url
Look at the header() function in the php documentation. A call like
header("Location: http://example.com/mypage.php?etc ") will cause an
instant redirect to that page.
If you want the script to know the URL of the page that called it, use
the predefined variable $_SERVER - see
For example, $_SERVER['PHP_SELF'] in a script at the address
http://example.com/mypage.php?etc would be /mypage.php/etc
Hope that helps. -A
- » Here is some good php ebooks - all are free ebooks. try this php ebooks links
- — Previous thread in » PHP Scripting Forum