- Forums
- PHP
- How To Display Show Current File Name Get Working File Name
This Page Contains information about How To Display Show Current File Name Get Working File Name By wallpaperama in category PHP with 0 Replies. [1108], Last Updated: Tue Feb 07, 2023
wallpaperama
Fri Feb 29, 2008
0 Comments
351 Visits
if i have a filename called gallery.php and i want to get that file name with a script how can i do that?
well, the answer is simple you can use this with php
PHP CODE:
<?
print $_SERVER['REQUEST_URI'];
echo"<br>";
print $_SERVER['PHP_SELF'];
echo"<br>";
print $_SERVER['PHP_SELF'];
echo"<br>";
print $PHP_SELF;
echo"<br>";
print $_SERVER['REQUEST_URI'];
echo"<br>";
print $_SERVER['SCRIPT_NAME'];
echo"<br>";
$page = $_GET['page'];
echo"<br>";
echo "$page";
?>