By Dhiraj | April 13, 2008

How To Trace Dynamic Page URL In PHP

// FUNCTION Starts ….

function getPageURL()

{

$pageURL = ‘http’;
if ($_SERVER[”HTTPS”] == “on”) {$pageURL .= “s”;}
$pageURL .= “://”;
if ($_SERVER[”SERVER_PORT”] != “80″) {
$pageURL .= $_SERVER[”SERVER_NAME”].”:”.$_SERVER[”SERVER_PORT”].$_SERVER[”REQUEST_URI”];
} else {
$pageURL .= $_SERVER[”SERVER_NAME”].$_SERVER[”REQUEST_URI”];
}
return $pageURL;
}

}

Note : Use This Funtion To Get The Dynamic Page URL.

Digg Facebook Technorati Bloglines

Email This Post Email This Post
Topics: Scripts |

Leave a Comment

Name:

E-Mail :

Website :

Comments :

Ad
Ad

Forum

Calendar

August 2008
M T W T F S S
« Jun «-»  
 123
45678910
11121314151617
18192021222324
25262728293031

Search

Polls

  • Who will rule the world?

    View Results

    Loading ... Loading ...