Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome, Guest. Please login or register.
Did you miss your activation email?

June 06, 2020, 03:17:26 PM

Login with username, password and session length
  • Total Posts: 190105
  • Total Topics: 20841
  • Online Today: 71
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 2
Guests: 53
Total: 55

Author Topic: Preview PHP block  (Read 2317 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.