Hey, I got around this by echoing the whole first line like:
<?php echo <<<longstring <?xml version="1.0" encoding="utf-8"?> longstring; ?> Then do the rest of the file as normal, Hope this helps, On May 15, 9:14 pm, xhe <hexuf...@gmail.com> wrote: > I want to create an atom feed, the first two lines are > > <?xml version="1.0" encoding="utf-8"?> > <feed xmlns="http://www.w3.org/2005/Atom"> > > But whenever I browse it, I always got this error > > Parse error: syntax error, unexpected T_STRING in xxxx > > But if I removed the first line, it works fine. > > So for RSS feed, is the first line really mandatory? Why php always > point it as error? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---