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. Link to comment https://forums.phpfreaks.com/topic/121136-solved-help/ 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 Link to comment https://forums.phpfreaks.com/topic/121136-solved-help/#findComment-624487 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.................. Link to comment https://forums.phpfreaks.com/topic/121136-solved-help/#findComment-624502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.