Re: [PHP4BETA] <?= have problem.

From: Date: Thu, 08 Jun 2000 13:52:32 +0000
Subject: Re: [PHP4BETA] <?= have problem.
Groups: php.version4 
Request: Send a blank email to php-version4+get-16220@lists.php.net to get a copy of this message
Home Chen: In line 1 of your script you are setting $mess_all, but in line 3 you are echoing $allow_mess. Shouldn't you be echoing $mess_all? Carroll Barrett -----Original Message----- From: Home Chen <master@ncc.com.tw> To: php4beta@lists.php.net <php4beta@lists.php.net> Date: Wednesday, June 07, 2000 7:55 PM Subject: Re: [PHP4BETA] <?= have problem. > >sorry... > >I use FreeBSD 3.4 + apache 1.3.12 + php 4.0.0 + Zend Optimizer >now i use >----------------------------------------------------------------- ><? $mess_all=45; ?> ><script Language='JavaScript'> >for (var i=0;i<<? echo $allow_mess ?>;i++) {messstore[i]='';} ></script> >----------------------------------------------------------------- >have some problem. it output. > ><script Language='JavaScript'> >for (var i=0;i< z45;i++) {messstore[i]='';} ></script> > >the $allow_mess value output first char is change at eveytime. > >Home Chen wrote: >> >> <? $mess_all=45; ?> >> <script Language='JavaScript'> >> for (var i=0;i<<?= $allow_mess ?>;i++) {messstore[i]='';} >> </script> >> >> sometime the output is >> >> ------------------------------------------------------------ >> <script Language='JavaScript'> >> for (var i=0;i< '45;i++) {messstore[i]='';} >> </script> >> ------------------------------------------------------------ >> >> but i use >> >> <? $mess_all=45; ?> >> <script Language='JavaScript'> >> for (var i=0;i<<? echo $allow_mess ?>;i++) {messstore[i]='';} >> </script> >> >> it's fine. >> >> ------------------------------------------------------------ >> <script Language='JavaScript'> >> for (var i=0;i<45;i++) {messstore[i]='';} >> </script> >> ------------------------------------------------------------ >> >> -- >> PHP 4.0 Beta Mailing List >> <http://www.php.net/version4/> >> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net >> For additional commands, e-mail: php4beta-help@lists.php.net >> To contact the list administrators, e-mail: php4beta-admin@lists.php.net > >-- >PHP 4.0 Beta Mailing List <http://www.php.net/version4/> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net >For additional commands, e-mail: php4beta-help@lists.php.net >To contact the list administrators, e-mail: php4beta-admin@lists.php.net >

« previous php.version4 (#16220) next »