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";
?>