Gomesh Posted December 9, 2009 Share Posted December 9, 2009 Hi Friends, Pls solve my query . will you explain this path :- $path = "http://" . $_SERVER['SERVER_NAME'] . strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")) [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/184518-pls-solve-my-query/ Share on other sites More sharing options...
Garethp Posted December 9, 2009 Share Posted December 9, 2009 $path = "http://" . "thisdomainname.com" . "/thisfilename.php"; Basically, the last part says "Reverse the /directory/filename, then take everything up to /, then reverse it" so you have /directory/filename.php -> php.emanelif/yrotcerid/ -> php.emanelife/ -> /filename.php Link to comment https://forums.phpfreaks.com/topic/184518-pls-solve-my-query/#findComment-974099 Share on other sites More sharing options...
Gomesh Posted December 9, 2009 Author Share Posted December 9, 2009 I didin't understand please elaborate what you want to say . or gave the url of some site where all these information was there.. Link to comment https://forums.phpfreaks.com/topic/184518-pls-solve-my-query/#findComment-974398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.