Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

The php strstr() is a great method to retrieve part of a string after a certain point.Here is an example to retrieve a url and get the page title for other purposes.

function my_page_URL() {

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

//This shows the url
echo $var;

//strstr gets all string after a certain point
$domain = strstr($var, ‘mysitename’); //will output
echo $domain; // prints whether the url had http:, www., etc

//now get rid of
$cms_page_title= str_replace(‘’, ”, $domain);

echo $cms_page_title; //now we get mypage.php