News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

October 18, 2019, 08:58:07 PM

Login with username, password and session length


  • Total Members: 3756
  • Latest: Ocean
  • Total Posts: 189090
  • Total Topics: 20764
  • Online Today: 73
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 35
Total: 35

Author Topic: Preview PHP block  (Read 2248 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Preview PHP block
« on: June 08, 2005, 12:51:21 PM »
Okay, here is the error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/britp2/public_html/forum/TPpreview.php(18) : eval()'d code on line 1

Parse error: parse error, unexpected $ in /home/britp2/public_html/forum/TPpreview.php(18) : eval()'d code on line 1

Done whilst previewing the following code:


echo '<p>Your IP address is:</p>';

But the code works! Any ideas?



  • Guest
Re: Preview PHP block
« Reply #1 on: June 08, 2005, 03:19:56 PM »
I think its because SMF does some things to those variables, that the preview function doesn't. I made it separate, so it would not "break" the page.

..but I am thinking maybe just testing it in another window would be safe - and running it trough SMF that way would show it like its supposed to.have to test it, but it may be the way to go. As it is now, it isn't that much helpful.


  • Guest
Re: Preview PHP block
« Reply #2 on: June 09, 2005, 05:44:14 AM »
That's okay. I mean bottomline is the block works and displays just fine just no preview.