TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 191
  • Total: 191

Parse Error on line 1?

Started by Selaiah, January 24, 2007, 08:46:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Selaiah

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?

Inge Jones

You need to leave out the <?php and the closing one when using php in a block

Selaiah

Thanks for the swift reply.

Strangely it already happens tho when i just type in "123" ?

JPDeni

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';


This website is proudly hosted on Crocweb Cloud Website Hosting.