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] Quote Link to comment 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 Quote Link to comment 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.. Quote Link to comment 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.