PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$today = Date("m/d/Y");
$file_handle = fopen("test.txt", "w");
fwrite($file_handle, "text written with the help of Php\n Todays date is $today");
fclose($file_handle);
for some reason i can't get a linefeed to work in this code, here is what i get:
text written with the help of Php Todays date is 04/04/2008