kid85 Posted January 5, 2008 Share Posted January 5, 2008 How can I get the path to HOME ? I run this but nothing is outputted... print getenv("HOME"); Quote Link to comment https://forums.phpfreaks.com/topic/84599-how-to-get-path-to-home/ Share on other sites More sharing options...
mike1313 Posted January 5, 2008 Share Posted January 5, 2008 try <?php echo $_SERVER['DOCUMENT_ROOT']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/84599-how-to-get-path-to-home/#findComment-431110 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.