[thelist] getting page name with PHP

Chris W. Parker cparker at swatgear.com
Tue Sep 10 15:02:01 CDT 2002


> -----Original Message-----
> From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
> Sent: Tuesday, September 10, 2002 12:56 PM
>
> This DOES give me the page, but with the FULL path -- any way to just
> get the filename itself?

you may have thought of this, but writing a function to strip of
everything but the text after the last "/" wouldn't be hard at all.

http://www.hereismydomain.com/andhereismy/file.php

becomes of course...

file.php


chris.



More information about the thelist mailing list