[thelist] getting page name with PHP

Howard Cheng howcheng at ix.netcom.com
Tue Sep 10 16:06:01 CDT 2002


$tmp = explode("/", $_SERVER['SCRIPT_FILENAME']);
$filename = $tmp[sizeof($tmp)-1];

At 12:56 PM 9/10/2002 -0700, Tom Dell'Aringa wrote:
>This DOES give me the page, but with the FULL path -- any way to just
>get the filename itself?
>
>Tom

::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/ <-- NEW!
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list