Warning: fopen("somefile.txt", "w") - Permission denied in /home3/sgdevel/public_html/screenshots/test.php on line 2
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home3/sgdevel/public_html/screenshots/test.php on line 3
And here's the code I'm using
Code: Select all
<?php
$fp = fopen("somefile.txt", "w");
fclose($fp);
?>