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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 238
  • Total: 238

php on TP

Started by dismal shadow, March 27, 2010, 03:18:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dismal shadow

<?php
?>

Does not work on TP even on "php code"

Skhilled

You mean in a block? You do not need to use the opening and closing tags. Just add the code. :)

dismal shadow

Interesting...it works.

Xarcell

Bloc has added the opening and closing tags already, so it's not necessary to add them again. This helps prevent a few breaks in the admin part of the article if not coded properly.

JPDeni

The reason that the opening and closing tags aren't used is that the php from blocks and articles is executed via an eval function.

This website is proudly hosted on Crocweb Cloud Website Hosting.