RE: Strange Parse Errors. Help needed.
| From: | Rodrigo Pinheiro | Date: | Thu, 03 Jan 2002 01:19:45 +0000 |
| Subject: | RE: Strange Parse Errors. Help needed. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2480@lists.php.net to get a copy of this message | ||
Hi there,
At the Linux server (PHP 4.0.3pl1) I'm using many other smarty templates
without any problems!
I'm only having problems with this code...
This is the error I get:
Parse error: parse error in
/home/sites/site62/web/biblio/admin/templates_c/5b/5bc67e21d75b45a47c022fc70
47a9e96/d41d8cd98f00b204e9800998ecf8427e.php on line 184
and at the line 184 of the php file I've got the following:
<?php if
($this->_tpl_vars['id_categoria'][$this->_sections['categorias']['index']]
$this->_tpl_vars['FORM_Categoria'] $FORM_Categoria): ?>
At the same line 184 of the same file, but now in windows 2000 (PHP 4.06) I
get something different, and without any error:
<?php if
($this->_tpl_vars['id_categoria'][$this->_sections['categorias']['properties
']['index']] == $this->_tpl_vars['FORM_Categoria']): ?>
Is there any error at the code, or should I have to ask the sysadmin to
upgrade PHP?
Thanks
Rodrigo
> -----Mensagem original-----
> De: Andreas Heintze [mailto:andreas.heintze@home.se]
> Enviada: quinta-feira, 3 de Janeiro de 2002 0:59
> Para: 'Rodrigo Pinheiro'
> Assunto: SV: [smarty] Strange Parse Errors. Help needed.
>
>
> Smarty requires at least PHP v4.0.4pl1, maybe that's it?
>
> /Andreas
>
>
> -----Ursprungligt meddelande-----
> Från: Rodrigo Pinheiro [mailto:rpinheiro@netcabo.pt]
> Skickat: den 3 januari 2002 01:47
> Till: smarty@lists.ispi.net
> Ämne: [smarty] Strange Parse Errors. Help needed.
>
> Hi there:
>
> I'm trying to use the following code:
>
> <select name="categoria">
> <option>Seleccione a Categoria</option>
> {section name=categorias loop=$id_categoria}
> {if $id_categoria[categorias] eq
> $FORM_Categoria}
> <option value="{$id_categoria[categorias]}"
> selected>{$nome_categoria[categorias]}</option>
> {else}
> <option
> value="{$id_categoria[categorias]}">{$nome_categoria[categorias]}</optio
> n>
> {/if}
> {/section}
> </select>
>
> It works fine in Windows 2000 (PHP 4.06)but when I use it in an Linux
> Server
> (PHP 4.0.3pl1) I get a "Parse Error". I'm using Smarty's latest version
> (1.5.2). Am I doing something wrong? Could somebody help me?
>
> Thank you
> Rodrigo
>
>
> ---
> You are currently subscribed to smarty as: andreas.heintze@home.se
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
>
>