Re: clearstatcache, how to use?

From: Date: Mon, 25 Oct 2004 07:28:24 +0000
Subject: Re: clearstatcache, how to use?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200222@lists.php.net to get a copy of this message
* Thus wrote Louie Miranda: > I have this code that checks for a file if it exists and do something > if it doesnt exist. Problem exist when im updating my data on the > directory, even if i did upload it. it still shows the non-existent > data. > > I have read that i should add the clearstatcache();, how am i going to > use it? after the file_exists? or before? before. but you only need to issue that if you've done one of the file operations listed in the 'Affected' list on http://php.net/clearstatcache Another reason why file_exists() could fail is due to the fact that the user php is running as my not have access to the path of the file. PHP will issue a warning about that but if you may have your errors suppressed. Curt -- Quoth the Raven, "Nevermore."

« previous php.general (#200222) next »