View Single Post
  #3 (permalink)  
Old 07-19-03, 07:52 AM
paulj000 paulj000 is offline
Bull in a china shop
 
Join Date: Jul 2003
Location: California, USA
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote