Code Library
Home Submit Free Hosting Link To Us Contacts

PHP Get current filename as variable

PHP Get current filename as variable PHP PHP Get current filename as variable Download (.zip)



<? 
$currentFile = $_SERVER[SCRIPT_NAME]; 
$parts = Explode('', $currentFile); 
$currentFile = $parts[count($parts) - 1]; 
?>






Tatet