Re: Re: unexpected T_SL

From: Date: Tue, 03 Sep 2002 04:13:49 +0000
Subject: Re: Re: unexpected T_SL
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-114979@lists.php.net to get a copy of this message
I tried everything and I still have this error. I have this error with php 4.2.2 on Windows 98 I also have the same problem with Apache, RedHat php 4.2.1. Well....I'm going to skip this lesson. Thanks for all the help! Regards! Steel wrote: > Hi Erwin, > > Monday, September 2, 2002, 11:28:09 AM, I've got: > > E> Voisine wrote: > >> Hi, > >> > >> What is wrong witht his code? Parse error: parse error, unexpected > >> T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 > >> > >> <?php > >> $str = <<<EOD > >> Example of string > >> spanning multiple lines > >> using heredoc syntax. > >> EOD; > >> ?> > > E> To be honest, there is nothing wrong. It works in version 4.2.2 (at least, > E> here it does) ;-)) > > E> Grtz Erwin > > Why not to try > <?php > $str = <<< EOT > ??? > > It seems to me, that EOD -> End Of Data, and EOT -> End Of Text > > Silly, but why not to try? :) > > -- > The Same, > Steel mailto:asergey@inbox.ru > http://www.none.ru

« previous php.general (#114979) next »