Pictures and caches
| From: | Gustav Wiberg | Date: | Thu, 18 May 2006 08:25:04 +0000 |
| Subject: | Pictures and caches | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236381@lists.php.net to get a copy of this message | ||
Hi!
The thing I want to do is to copy a picturefile to another picturefile.
The thing is that I want to copy this file, show it , and then delete it (when it has been shown) .Is this possible?
I want to do this, because of avoiding problems with cache when uploading file through an admin-online-system... (the customer uses IE)
When I delete the file in code down below, the picture is not shown (I guess because the browser hasn't rendered out all info?)
If you want more code, tell me :-)
Best regards
/Gustav Wiberg
$fileName = "pictures/products/$dbIDProduct1" . "_small";
$ran = strval(mktime()); //Current time
if (file_exists($fileName . ".gif")) {
copy($fileName . ".gif", "pictures/products/1_$ran.gif");
showpicture("pictures/products/1_$ran.gif", $dbProductName1, 300, 150, "top");
//deletefile("pictures/products/1_$ran.gif");
}