Re: [PHP] Problem with filemtime

2007-07-31 Thread Eddie Dunckley
On Tue 31 Jul 07 22:57, Kevin Murphy wrote: > $csv_file = "myFile.csv"; > $last_modified_csv = filemtime($csv_file); > > $fh = fopen($csv_file, 'w') or die("can't open file"); > fwrite($fh, "Data Goes Here"); > fclose($fh); add a clearstatcache() in here. (and sometimes just for because you might

Re: [PHP] Problem with filemtime

2007-07-31 Thread Stut
Kevin Murphy wrote: I'm running the following script (simplified for discussion) to create a CSV file. My problem here is that the first filemtime and the last filemtime always equal each other. What I am trying to get is the filemtime ($new_last_modified) of the file that was just executed 3

[PHP] Problem with filemtime

2007-07-31 Thread Kevin Murphy
I'm running the following script (simplified for discussion) to create a CSV file. My problem here is that the first filemtime and the last filemtime always equal each other. What I am trying to get is the filemtime ($new_last_modified) of the file that was just executed 3 lines earlier. Is