Monday, July 2, 2012

Get Current file Name in php

<?php

//  get the current file name
$currentFile_Name = $_SERVER["SCRIPT_NAME"];
echo basename($currentFile_Name); 
 
?>

No comments:

Post a Comment