Quick Search:
 
 PHP Code: Find the current URL of the page Jump to:  
Category: >> PHP Code >> Find the current URL of the page  

<< lastnext >>

Snippet Name: Find the current URL of the page

Description: Finds the current URL of the page.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?PHP
 
FUNCTION getCurrentPage() {
        $thedomain .= "http://";
     $thedomain .= $_SERVER['HTTP_HOST'];
     $thedomain .= $_SERVER['REQUEST_URI'];
     RETURN $thedomain ;
}
 
ECHO "The current URL is: ".getCurrentPage()."!";
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org