Re: 0 byte compiled templates
| From: | Peter Bowyer | Date: | Fri, 28 Dec 2001 13:46:22 +0000 |
| Subject: | Re: 0 byte compiled templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2401@lists.php.net to get a copy of this message | ||
At 01:51 PM 12/28/01 +0100, you wrote:
The problem is, a 0 byte template results in a blank screen of course. The problem: i dont know why there are sometimes 0 byte files.a) Your hard drive gets full at some point, so no file can be written to (unlikely) b) I don't know if this causes the problem (never played with it to see) but if the file is read and written to at the same time, or is read and while being read it tries to write to it as well, that could cause the file to have no size. Possible solution: implement file locking - I don't know if this is already in Smarty, so apologies if it is - it's just always been my problem. Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo--