View Single Post
  #8 (permalink)  
Old 07-23-03, 06:19 PM
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 ChirstGuy,

The output on both servers was nothing. The page was blank when I used the following code only:

PHP Code:
<?
$currentFile 
$_SERVER["SCRIPT_NAME"];
  
$parts Explode('/'$currentFile);

  print 
$parts[count($parts)];
?>
----------------

Hi Kevin,

I need to be able to have the script get the current file name without supplying the url. The script has to determine what the URL is on it's own and then break it down and output the current page/file name.

Thanks guys
Reply With Quote