Re: [PHP] page name string

2003-06-16 Thread CPT John W. Holmes
> I need a really simple function that retrieves the actual page file name > from a URL. So, if the URL is http://www.server.com/pagename.php, or if > it is http://www.server.com/directory/pagename.php, the function in both > cases will return "pagename.php". > > I'm sorry if this is a ridiculous

[PHP] page name string

2003-06-16 Thread drparker
I need a really simple function that retrieves the actual page file name from a URL. So, if the URL is http://www.server.com/pagename.php, or if it is http://www.server.com/directory/pagename.php, the function in both cases will return "pagename.php". I'm sorry if this is a ridiculously easy ques