Adding php to a block

I am using a rss2html php script to make my RSS feeds searchable by the C5's default search engine.

In order to make it work I have tried two options:
1. Creating a single page. Then adding a php block (addon) and pasting the code. I get the following error. I checked the file view.php and saw anything suspicious.

That is a standard php error message for faulty syntax in your php code.

If the code parsed correctly before you added it to the php block, sometimes you may have to escape some quotes in order for it to work within the eval() that the php block uses.

Another solution to the same problem is to add your php code to a custom template for the html block. It won't be as easy to edit afterwards, but it does avoid the eval() and is an easy way to just get a bit of php into a view.