note 46830 deleted from function.clearstatcache by tularis
| From: | tularis@php.net | Date: | Mon, 25 Oct 2004 07:35:31 +0000 |
| Subject: | note 46830 deleted from function.clearstatcache by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79064@lists.php.net to get a copy of this message | ||
Note Submitter: lmiranda at gmail dot com
----
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";
}
----
Reason: bad code