Lol5916 Posted August 24, 2008 Share Posted August 24, 2008 How do you get this from a script: If this file is called file.php /home/***/public_html/file.php It's basically the path of the script. Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted August 24, 2008 Share Posted August 24, 2008 so you want to get the path of the script , i dont know if you can get one like /home/public_html/ but $_SERVER['DOCUMENT_ROOT']; may be what you want Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 24, 2008 Share Posted August 24, 2008 or $_SERVER['PHP_SELF'] gives the current url on the page.................. 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.