Connecting Tech Pros Worldwide Help | Site Map

what is wrong with this <<< syntax ??

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:17 PM
andrew
Guest
 
Posts: n/a
Default what is wrong with this <<< syntax ??

Ok, pretty new to this php stuff, but good with perl/python etc.

What is wrong with this php document ???

I get this error:

Parse error: syntax error, unexpected $end in
E:\xampp\workspace\test1\fragments.php on line 7

from this doc ...

===== start doc
<?
print <<<EOF
asdf
EOF;


print <<<EOFX
asdf
EOFX;
?>
===== end doc


  #2  
Old July 17th, 2005, 12:17 PM
Andy Hassall
Guest
 
Posts: n/a
Default Re: what is wrong with this <<< syntax ??

On 25 Mar 2005 07:39:44 -0800, "andrew" <aktweb@msn.com> wrote:
[color=blue]
>Ok, pretty new to this php stuff, but good with perl/python etc.
>
>What is wrong with this php document ???
>
>I get this error:
>
>Parse error: syntax error, unexpected $end in
>E:\xampp\workspace\test1\fragments.php on line 7
>
>from this doc ...
>
>===== start doc
><?
>print <<<EOF
>asdf
>EOF;
>
>
>print <<<EOFX
>asdf
>EOFX;
>?>
>===== end doc[/color]

Nothing's wrong with what you've posted, it works fine.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
  #3  
Old July 17th, 2005, 12:17 PM
NC
Guest
 
Posts: n/a
Default Re: what is wrong with this <<< syntax ??

andrew wrote:[color=blue]
>
> What is wrong with this php document ???
>
> I get this error:
>
> Parse error: syntax error, unexpected $end in
> E:\xampp\workspace\test1\fragments.php on line 7
>
> from this doc ...
>
> ===== start doc
> <?
> print <<<EOF
> asdf
> EOF;
>
> print <<<EOFX
> asdf
> EOFX;
> ?>
> ===== end doc[/color]

Make sure EOF; and EOFX; are immediately followed by
line breaks (there should not be any blank spaces
after them).

Cheers,
NC

  #4  
Old July 17th, 2005, 12:17 PM
Travis Font
Guest
 
Posts: n/a
Default Re: what is wrong with this <<< syntax ??

It's your hoster. They must have it turned off in php.ini. Tell use
errors/whats going on thats wrong..maybe can directly point it out ^_^

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.