Re: Problem with filemtime

From: Date: Tue, 31 Jul 2007 21:46:02 +0000
Subject: Re: Problem with filemtime
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259958@lists.php.net to get a copy of this message
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 want to emit a buffer, a flush(); > $new_last_modified = filemtime($csv_file); -- Eddie Dunckley - eddie@rttc.co.za - Realtime Travel Connections IBE Development, www.rttc.co.za, cell 083-379-6891, fax 086-617-7831 Where 33deg53'37.23"S 18deg37'57.87"E Cape Town Bellville Oakdale ZA "Honk if you hate peace and quiet."

« previous php.general (#259958) next »