A simple function that I had used in the Translation Plugin, this could be your use. This is a PHP function which can get you the URL of the page being visited.
function kish_trans_curPageURL() { $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;}
You can print the URL by using this function
- PHP Script to Validate URL : I have been working to create...
- Translate your web pages and get Google Indexed : I have written a WordPress Plugin...
- Converting text with link to hyperlink in PHP : I wanted to covert http texts...
- Modifying Image size for the home page – WordPress : I have done some modification for...
- Kish Translate WordPress Translation Plugin– Concept : I was really interested in developing...
Tweet Samsung Galaxy Note Rom is available for download, but this is only for AT&T users (This ...
Tweet I am currently using a Samsung Galaxy Note and I was using an iPhone 4 and an iPad 2 along wit...
Pingback: How to Create a Theme Development Environment for a Live WordPress Site – Inspect Element - Web Design & Development Blog
Pingback: Corporate blog | Home