clearstatcache() not working.

This is a discussion on clearstatcache() not working. within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Maybe I am doing something wrong. I can't seem to clear status of a files_exists() finction using clearstatcache(). In ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-09-2004
Jim Canfield
 
Posts: n/a
Default clearstatcache() not working.

Maybe I am doing something wrong. I can't seem to clear status of a files_exists() finction using clearstatcache(). In this particular script, the $file may or may not exist depending on what is happening in other background applications. For some reason, even when the while it's gone file_exists still returns true. What gives? Is there something I need to configure in php?

//Clear cache
clearstatcache();

//Set the path

$file = "/path/to/file";


//Is the file still there?

if (file_exists($file)) {

....Do Something;



} else { ..Do Something else.}

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0