Parse error:PHP block created using DB

I managed to create PHP Block by changing the function of existing html block to PHP in db. But any simple php code (like echo 'hello world'; )keeps giving me error:

Parse error: syntax error, unexpected '<' in /home/ethiomys/public_html/inc/classes/BxDolPageView.php(572) : eval()'d code on line 1

I have also tried with php syntax <?php  ?>or <? ?>, but didnt work. I know it has once worked before in D7, but couldn't do it this time. Any help pls?

Quote · 7 Feb 2010

Don't do that.

Follow the instructions on this page to create PHP Blocks, instead of trying to rig a HTML block.  I use it and so do others, it's great and works perfectly.  You don't need the open tags either for php.

http://www.boonex.com/unity/forums/topic/Add-PHP-blocks-to-Pagebuilder-for-D7.htm

Quote · 7 Feb 2010

To save yourself an annoying editing job, HL posted the entire pageview file you need to replace at this link:

http://www.boonex.com/trac/dolphin/ticket/1578

Save your old one first of course, but after you replace that I think all you have to do is add some language keys.

Quote · 7 Feb 2010

Ya, I did ignore that instruction...I will give it a try. Thanks for your prompt reply both of you.

Quote · 7 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.