Re: unlink before imagepng?

From: Date: Wed, 20 Jun 2007 18:38:09 +0000
Subject: Re: unlink before imagepng?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-257518@lists.php.net to get a copy of this message
Can do, but I would be calling clearstatcache() very often, many times per second, as often as these graphics are being edited. Would that still be appropriate for the server? On Jun 19, 2007, at 8:07 AM, Greg Donald wrote:
On 6/17/07, Brian Dunning <brian@briandunning.com> wrote:
If I write an edited image back to disk using imagepng, is it desirable to first unlink the existing image?
It's not required.
I notice that it works fine if I don't. Just wondering if there are any pros or cons.
Just be sure and call clearstatcache() so your changes show up immediately. --Greg Donald http://destiney.com/ --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#257518) next »