![arrakis](https://xoops.org/uploads/avatars/blank.gif)
This script just check the date and display a different image if a certain date is passed.
I did the script separately and then I made a new block and put there the php code, and specified in the drop down menu that this block is a php script.
But the strange thing is that it works perfectly but I don't see anything else than the executed code, if i disable the script the site is ok, if i enable it i only see the script output and the site is gone
![](https://xoops.org/uploads/smil42e7a42768aef.gif)
I looked for long here (Q&A, Faq, suppor) but I couldn't find any information regarding how to add a PHP script into a block in the top page.
Is there a special way how to add it or there is something wrong in my site? (btw it is a fresly new installation)
Thanks!