TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Selaiah on January 24, 2007, 08:46:44 PM

Title: Parse Error on line 1?
Post by: Selaiah on January 24, 2007, 08:46:44 PM
When i try to preview a PHP Article i get:

Parse error: parse error, unexpected '<' in /
portal/httpdocs/Sources/Load.php(1733) : eval()'d code(231) : eval()'d code on line 1

tried 2 different themes. The rest of the forum seems to be working perfectly. Any idea?
Title: Re: Parse Error on line 1?
Post by: Inge Jones on January 24, 2007, 08:50:13 PM
You need to leave out the <?php and the closing one when using php in a block
Title: Re: Parse Error on line 1?
Post by: Selaiah on January 24, 2007, 09:00:28 PM
Thanks for the swift reply.

Strangely it already happens tho when i just type in "123" ?
Title: Re: Parse Error on line 1?
Post by: JPDeni on January 24, 2007, 09:06:33 PM
What, exactly, is the code in your article?

If it starts with


<?php


you need to get rid of that, like Inge Jones said. Also, the normal ending


?>


in php files.

If your code is


123


that won't work, either, because that is not php code. What will work is something like


echo '123';