By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,940 Members | 1,454 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,940 IT Pros & Developers. It's quick & easy.

what is wrong with this <<< syntax ??

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 25 Mar 2005 07:39:44 -0800, "andrew" <ak****@msn.com> wrote:
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


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

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a
NC
andrew wrote:

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


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

Cheers,
NC

Jul 17 '05 #3

P: n/a
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 ^_^

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.