PDA

View Full Version : How do I include PHP file in CMS Widget?


gator777
12-29-2009, 02:52 AM
I've read these forums and could not find the answer I needed.

All I need is simple instructions on how to "include" a .php file in a widget. Nothing fancy, just some simple guidlines to explain how to add the file and have it display in a Widget.

Thanks in advance for your help

--------------- Added 1262080610 at 1262080610 ---------------

I got the output to show up, but the output sits on top of the header and does not display in the block. What do I need to get the output to stay in the block?

Here is my code:

$output .= include ("http://www.myforum/forum/tsstatus/view.php]"); "<br />\n";

merk_aus
08-09-2010, 09:13 AM
Is anyone able to help with this? I need the same thing.

Lynne
08-09-2010, 02:16 PM
You cannot do any echo of your output or it will show up on the top of the page, not in the widget. So, check your code.