Lol5916 Posted August 24, 2008 Share Posted August 24, 2008 This is probably a general PHP knowledge question, but how would I do this $ee = $_SERVER['DOCUMENT_ROOT']; $qq = fopen("file.php"); fwrite($qq, $ee"/banned.php"); fclose($qq); I want file.php to say the server document root/banned.php So it would be like: /home/******/public_html/banned.php in file.php Link to comment https://forums.phpfreaks.com/topic/121140-fopen-and-others-help/ Share on other sites More sharing options...
trq Posted August 24, 2008 Share Posted August 24, 2008 fwrite($qq, "$ee/banned.php"); Link to comment https://forums.phpfreaks.com/topic/121140-fopen-and-others-help/#findComment-624522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.