I'm trying to write a php file through a php file, but I can't get newlines (\n) to work. Please tell me what I'm doing wrong here:
$fp = fopen("./graph/graph.php",'w');
fwrite($fp, "<?php\n"); fwrite($fp, "slice[0]=0;\n"); Thanks a lot!
$fp = fopen("./graph/graph.php",'w');
fwrite($fp, "<?php\n"); fwrite($fp, "slice[0]=0;\n"); Thanks a lot!
