Ive got a problem, i have made a code to write some data to a .php file, but when it writes to the file, the data.php file only contains '<? ?>' in it. This is the part of the code that writes to the file.
PHP Code:$write2file = fopen("data.php", "w");
fwrite($write2file,"<?php");
fwrite($write2file,"echo \"$Data\";");
fwrite($write2file,"?>;");
fclose($write2file);
echo "Done!";





Reply With Quote



