bcarl314
06-13-2003, 01:34 PM
I would like to be able to extract the filename from an URL like this
http://mysub.mysite.com/dir1/dir2/myPhpFile.php?action=action&other=stuff
And I want to extract only "myPhpFile.php"
If I use $PHP_SELF I get /dir1/dir2/myPhpFile.php
I need to eliminate the "/dir1/dir2/" from that. Any ideas?
Thanks
http://mysub.mysite.com/dir1/dir2/myPhpFile.php?action=action&other=stuff
And I want to extract only "myPhpFile.php"
If I use $PHP_SELF I get /dir1/dir2/myPhpFile.php
I need to eliminate the "/dir1/dir2/" from that. Any ideas?
Thanks