RE: [PHP-GENERAL] Re: [PHP3] FastTemplate not working with PHP4

From: Date: Fri, 16 Jun 2000 07:04:58 +0000
Subject: RE: [PHP-GENERAL] Re: [PHP3] FastTemplate not working with PHP4
Groups: php.general 
Request: Send a blank email to php-general+get-2050@lists.php.net to get a copy of this message
You need to replace one line in the FastTemplate code, in the parse_template() function: It says: $template = ereg_replace("{$key}", $val, $template); Change to: $template = ereg_replace('{'.$key.'}', $val, $template); --marten > -----Original Message----- > From: Christian Calloway [mailto:cubadc@mail.earthlink.net] > Sent: Friday, June 16, 2000 7:47 AM > To: php-general@lists.php.net > Subject: [PHP-GENERAL] Re: [PHP3] FastTemplate not working with PHP4 > > > I've had a ton of problems, finally I just switched to > phplibs Template > class. It works exactly the same, except the method names are > different. > "Jonathan Griffin" wrote in message ... > I've recently upgraded to PHP4. Everything is now working > smoothly...even > sessions! I'm running Apache for Windows on a Win98 box. > The only thing I > had not tested until this morning were a few applications I > had developed > using FastTemplate. Well, none of the variables are being > interpolated. > All I see is {variablename} instead. Has anyone else had trouble with > FastTemplates and PHP4? Any suggestions for myself? > > Thanks a million, > > Jonathan Griffin > Software Developer > MasterMind Internet Services > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#2050) next »