$handle = fopen($filename,"w");
chmod($filename, 0755);
fwrite($handle, "<?php $keyword = 'something';");
fwrite.($handle, "include($_SERVER['DOCUMENT_ROOT'].'/test.php'); ?>");
when i do fwrite "test" it writes "test" in the file and it works. but when i try the above, it gives me an error. how would i make it so it would write
<--- this is what i would like to write in the filePHP Code:<?php
$keyword = 'something';
include($_SERVER['DOCUMENT_ROOT'].'/test.php');
?>





Bookmarks