PHP in blocks

PHP in blocks

by Jean-Marc Loisil -
Number of replies: 2

I wanna know if we can include php scripts in an HTML Block because I have tested a script which can display weather forecast via an XML service .

I think have seen this question before but canno't find it.

Average of ratings: -
In reply to Jean-Marc Loisil

Re: PHP in blocks

by John Papaioannou -
No, you cannot. However, you can create your own block if you wish and put any code you want in there. It's really not difficult (it's actually almost trivial after you have done it once!) and you can read this guide Development:Blocks to get you started.

If the code is simple and short, it is also possible to post the code here and ask if someone can package it into a block for you. smile

(Edited by Helen Foster to fix the link to the blocks guide - original submission Friday, 9 September 2005, 12:43 PM)