Jump to content

[SOLVED] php help


sasori

Recommended Posts

i don't know how to display the output in a vertical manner

using this code of mine

<?php

$today = date('F d Y');
$fh = fopen('file.txt','a+');
fwrite($fh ,"$today\n");
fclose($fh);

?>

 

the output produces,

 

August 2 2008August 2 2008August 2 2008August 20008 <-- and so on, and so forth..

 

the "\n" seems that it doesn't work at all :( ,

Link to comment
https://forums.phpfreaks.com/topic/117821-solved-php-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.