Re: [PHP4BETA] <?= have problem.
[email protected] ("Carroll Barrett") Thu, 8 Jun 2000 08:52:32 -0500
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> To: [email protected] <[email protected]> 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: [email protected] >> For additional commands, e-mail: [email protected] >> To contact the list administrators, e-mail: [email protected] > >-- >PHP 4.0 Beta Mailing List <http://www.php.net/version4/> >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] >To contact the list administrators, e-mail: [email protected] >