note 46830 added to function.clearstatcache
| From: | lmiranda at gmail dot com | Date: | Mon, 25 Oct 2004 06:16:59 +0000 |
| Subject: | note 46830 added to function.clearstatcache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79061@lists.php.net to get a copy of this message | ||
clearstatcache();
i think it does not work..
i have this code that checks for a existing file and display a different file if it finds nothing.
problem is when i upload the new file it does not show the new file, i have tried this
clearstatecache(), but did not work.
here's my code though.
$itemCode_SHOW = $row[2];
$filename =("/www/images/stockprod/$itemCode_SHOW.jpg");
clearstatcache();
if (file_exists($filename)) {
$itemCode_SHOW = $row[2];
} else {
$itemCode_SHOW = "noimage";
}
----
Manual Page -- http://www.php.net/manual/en/function.clearstatcache.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46830
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46830&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46830&report=yes
Search -- http://master.php.net/manage/user-notes.php