Showing posts with label url. Show all posts
Showing posts with label url. Show all posts

Wednesday, June 29, 2016

How To Get Current URL Without Page Name In PHP

Today I will share a code snippet which will help you get a current URL Without Page Name.

<?PHP

function getPath() {
$protocol = strpos(strtolower($_SERVER[SERVER_PROTOCOL]),https) === FALSE ? http : https;
$host = $_SERVER[HTTP_HOST];
$path = substr($_SERVER[SCRIPT_NAME], 0, -strlen(basename($_SERVER[SCRIPT_NAME])));

return $protocol.://.$host.$path;
}

echo getPath();

?>

This simple piece of code will do the trick.

If you want more such tips and tricks related to PHP then consider subscribing to our blog.

Enjoy!


Tuesday, June 28, 2016

Email Extractor PHP Script Extract Email From Text And URL

PHP Email Extractor serves to extract emails either from provided text or from URL. All found emails will be output below the input form, one email per row.

Download Email Extractor PHP Script

Wednesday, February 3, 2016

Download Advanced URL Catalog v2 35 with Keygen

wireless network software free download bookmarks download free bookmarks free download bookmark manager software
This software provide facility to save or manage your system or web bookmaker in to different place like online
Fallow the link button and click on direct download link
link