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 Quote 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 Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.