Im trying to get the last modified time of a file before and after i write to it using fwrite. But, i get the same values for some reason.
Try to add fclose after the fwrite:
"; $e=fopen('log.txt', 'w'); fwrite($e, "well well well"); fclose($e); $j = filemtime('log.txt'); echo gmdate("h:i:s", $j); ?>