Michan Posted October 25, 2007 Share Posted October 25, 2007 Hi guys, I'm stuck with PHP_SELF. The following gives me the directory without http://www.blah.com and the extension.php: rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); ...But how do I get the extension.php? I'd like to output the following: directory/whatever/blah.php Can anyone help me here, please? Thanks in advance. - Mi Link to comment https://forums.phpfreaks.com/topic/74797-solved-php_self-just-the-directory-page-name/ Share on other sites More sharing options...
chocopi Posted October 25, 2007 Share Posted October 25, 2007 look at this Path Info Link to comment https://forums.phpfreaks.com/topic/74797-solved-php_self-just-the-directory-page-name/#findComment-378170 Share on other sites More sharing options...
Michan Posted October 25, 2007 Author Share Posted October 25, 2007 Ah, thank you very much! Link to comment https://forums.phpfreaks.com/topic/74797-solved-php_self-just-the-directory-page-name/#findComment-378179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.