PDA

View Full Version : vBulletin CMS: Programming a PHP Widget


attemis
10-30-2012, 09:42 PM
Hello,
sorry my english is bad because im german.
I want to make a short widget for my vBulletin CMS.
But if i use the include funktion of php the cms site doesnt show something. The cms site stays white.
Here is my Code:
(Im a php beginner)
$output = include 'http://scripts.creeppeace.com/server_widget/index.php';

Thanks for helping me.
attemis

PS: On this Script I want to include is one mysql query to a non vbulletin database!

kh99
10-31-2012, 04:19 AM
What does the script index.php do exactly? And is your server set up to run the php or just return the file? If you're trying to include the html output of that script you would need to do something like

$output = file_get_contents('http://scripts.creeppeace.com/server_widget/index.php');