Jump to content

fwrite() doesn't work


souless87

Recommended Posts

Hello new here looking for some help I'm trying to use fwrite on my new dedicated server but it doesn't seem to work mostly everything else works but this hasn't been

 

$date = date("m/d/Y");
$file = "log.db";

$blah = fopen($file, "a");
fwrite($blah, "$date\n");
fclose($blah);

 

PHP version: 5.2.6

 

The permissions are ok the file is there it can see the file when I used file_exists("log.db")

it works on my computer when I run it in zend IDE

any suggestions?

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/149984-fwrite-doesnt-work/
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.