--- Error Received ---
Warning: fopen("./test.txt","w") - Permission denied in /emcb/services/http/test.php on line 5
Warning: Supplied argument is not a valid File-Handle resource in /emcb/services/http/test.php on line 6
Warning: Supplied argument is not a valid File-Handle resource in /emcb/services/http/test.php on line 7
--- Error Received ---
--- Bad Code ---
<?php
$string = "One Line\nTwo Line\nThree Line\n\n";
$fp = fopen("./test.txt", "w");
fwrite($fp, $string);
fclose($fp);
?>
--- Bad Code ---
Could some please tell me ehat im doing wrong here.
Cheers,
Elfyn