TinyPortal

Development => Support => Topic started by: Santa90 on October 02, 2007, 10:11:38 AM

Title: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: Santa90 on October 02, 2007, 10:11:38 AM
Hi, Anyone help? I keep getting the following error when I add a PHP article.

Parse error: syntax error, unexpected T_STRING in Sources/Load.php(1732) : eval()'d code(209) : eval()'d code on line 1

Regards
s90
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: Dragooon on October 02, 2007, 10:13:03 AM
Whats the code you are trying to add?
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: G6Cad on October 02, 2007, 10:16:13 AM
Remove the php tags at the start and end of the code you use in the block or article.
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: Santa90 on October 02, 2007, 10:24:45 AM
Hi I wasnt using any code, I was just testing so posted "Test"

Thanks
s90
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: G6Cad on October 02, 2007, 10:34:45 AM
Yes you posted, but what did you post IN, what kind of function ion TP did you use ?  Block ? Article ? What kind of Block or article ?
You really need to give us more information on what you have.
If you are unsure of what info, we have posting guides that will help you with what we need to know.
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: Zetan on October 02, 2007, 10:35:29 AM
try:

echo '
         TEST
TEST
           TEST

';


It's php code.. It doesn't work like regular HTML, it has rules which need to be followed to work.
Title: Re: Parse error: syntax error, unexpected T_STRING in /Load.php
Post by: Santa90 on October 02, 2007, 10:42:26 AM
Oh everything has to be written in php, One of them days lol. Thanks