PHP: get current filename as variable


<?php
$currentFile = $_SERVER["SCRIPT_NAME"];
$parts = Explode('/', $currentFile);
$currentFile = $parts[count($parts) - 1];
$currentFile = "\"in_".$currentFile."\"";
echo $currentFile;      
?>


Popular posts from this blog

The Jagannath Temple in Puri, Odisha, is full of mind-boggling mysteries!

மோசடிகளால் ஏமாறாமல் பாதுகாப்பாக இருங்கள்!