Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
<?php
$fp = fopen("jai.txt", "w") or die("Couldn't create new file");
$numBytes = fwrite($fp, "Hello, this is some text!");
fclose($fp);
echo "Wrote $numBytes bytes to newfile.file!";
?>