Gets the main url fo http_reffer
Copy this code and paste it in your HTML
<?php
// URL:
$site = "http://www.site.com.br/teste";
// SPLITS URL FROM HTTP://:
// CLEAN THE RESULT , LEAVE THE MAIN ADDRESS:
// SHOW:
echo($site);
?>
Report this snippet
Comments
Subscribe to comments