Hi ChristGuy
This is what I tried out:
PHP Code:
<?
$currentFile = $_SERVER["SCRIPT_NAME"];
print $currentFile;
?>
On one of the servers I use this was the output:
/cgi-bin/php
On the other server it output:
/test/03.php
where "test" was one directory deep from site root.
I can delete the directory info if I need to on the second one but I have no idea how to handle the first output!
Any ideas?