Re: [PHP] unlink before imagepng?

2007-06-20 Thread Brian Dunning
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 [EMAIL PROTECTED] 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] unlink before imagepng?

2007-06-20 Thread Greg Donald

On 6/20/07, Brian Dunning [EMAIL PROTECTED] wrote:

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?


I certainly wouldn't use it if I didn't need it.


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] unlink before imagepng?

2007-06-19 Thread Greg Donald

On 6/17/07, Brian Dunning [EMAIL PROTECTED] 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



[PHP] unlink before imagepng?

2007-06-17 Thread Brian Dunning
If I write an edited image back to disk using imagepng, is it  
desirable to first unlink the existing image? I notice that it works  
fine if I don't. Just wondering if there are any pros or cons.


- Brian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php