* 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." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php