PHP Examples - snippetdb.com Get link Facebook X Pinterest Email Other Apps - September 25, 2011 http://snippetdb.com/php/ Read more
PHP: get current filename as variable Get link Facebook X Pinterest Email Other Apps - September 25, 2011 <?php $currentFile = $_SERVER["SCRIPT_NAME"]; $parts = Explode('/', $currentFile); $currentFile = $parts[count($parts) - 1]; $currentFile = "\"in_".$currentFile."\""; echo $currentFile; ?> Read more