Re: Problem with 1.4.0 and Win32 platform
| From: | syber | Date: | Mon, 07 May 2001 21:43:28 +0000 |
| Subject: | Re: Problem with 1.4.0 and Win32 platform | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-699@lists.php.net to get a copy of this message | ||
Great ;-)
I'm afraid at the beginning because it didn't work again.
I've deleted the compilited template on ./template_c and now work...
Well done guys !
Sylvain
Monte Ohrt wrote:
Don't comment the whole thing, you still need to do this: fwrite( $fd, $contents ); fclose($fd); chmod($filename,0644); syber wrote:I'm sorry I see the FAQ about it, but the problem is not here... I've comment there lines :-- Monte Ohrt <monte@ispi.net> http://www.ispi.net/ --- You are currently subscribed to smarty as: atsyber@ifrance.com To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/# if (flock($fd, LOCK_EX) && ftruncate($fd, 0)) { # fwrite( $fd, $contents ); # fclose($fd); # chmod($filename,0644); # }But no more result... :-/ Sylvain Monte Ohrt wrote:Try removing FLOCK calls, that is still a problem in win98. remove this IF condition in the Smarty.class.php, just do it no matter what: if (flock($fd, LOCK_EX) && ftruncate($fd, 0)) syber wrote:--- You are currently subscribed to smarty as: monte@ispi.net To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/Win32 (win98) Apache 1.3.19 PHP 4.0.5 Caching turned off Default configuration. I used yours examples and the same configuration for both release. [1.3.2] All work... [1.4.0] - Pear : Unlike 1.3.2 release, if I don't include pear.php (in the same directory or using php.ini), I've not error on display. That's strange because Config_File.class.php don't change (only @php.net ;-) - Problem : Nothing display, but I've no error so hard to debug.. Only standard header on source index.tpl in ./templates_c <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> Exclusive file locking problem ? Hope you can help me. Sylvain.B. PS : sorry for my bad english. " In a world without walls and borders who need windows and gates " ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif --- You are currently subscribed to smarty as: monte@ispi.net To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/-- Monte Ohrt <monte@ispi.net> http://www.ispi.net/ --- You are currently subscribed to smarty as: atsyber@ifrance.com To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/