On 8/29/07, Richard Lynch <ceo@xxxxxxxxx> wrote: > I don't think you can have a space between the <<< and the 'END' bit... > > On Wed, August 29, 2007 6:00 am, RodgerW wrote: > > Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? > > I prrint via heredocs and its not working. Print with single quotes > > and > > double quotes work. > > > > <p> > > <h6>string init method 3: heredocs</h6> > > <?php > > print <<< END > > Test > > END; > > ?> > > </p> > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Please vote for this great band: > http://acl.mp3.com/feature/soundandjury/?band=COMPANY-OF-THIEVES > > Requires email confirmation. > One vote per day per email limit. > Obvious ballot-stuffing will be revoked. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Additionally, I don't believe that the END; used to terminate the HEREDOC block in this code should be indented. To my understanding, the terminator must begin the line, regardless of the position of the initiator, like so: <? print <<<END Test. END; ?> -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list.... 50% off for life on web hosting plans $10/mo. or more at http://www.pilotpig.net/. Use the coupon code phpgeneralaug07 Register domains for about $0.01 more than what it costs me at http://domains.pilotpig.net/. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php