Jump to content

fopen and others help


Lol5916

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.