5
Quote:
Though I'm not actually certain that "include"s are allowed, why not just put the php code directly in the block?
For your html you could try using 'echo'
... or maybe closing the php tag, writing your html, then opening it again might work... I have never tried it, and don't have access to a php-enabled server at this moment, sorry.
As long as the server has allow_url_fopen enabled, there shouldn't be a problem.
Closing the php tag and writing the html after it won't work; tried it. You'll need to use echo to output HTML. So to answer the original question, to mix HTML and PHP in a block, select the PHP code block content type and type in your code like so...
echo ('<b>This is my included file</b><br />');
include ("myfile.php");
You may also need to give the url or path for the file you are including, like so...
include ("../../myfile.php");
or
include ("http://mysite.com/myfiles/myfile.php");
Hope this helps.
James
Insanity can be defined as "doing the same thing over and over and expecting different results."
Stupidity is not a crime. Therefore, you are free to go.