Ok, lack of vbulletin knowledge + only very basic php knowledge = fail
I have now changed my script.php file so that the output is now a function.
When i include the script.php in a simple php script like this it works. So no problem in the script.
PHP Code:
<?php
require_once('script.php');
myfunction();
?>
Now let's include this not in the simple script but in a vbulletin page!
I have a page.php file and a matching template.
These i have created after reading this tutorial:
https://vborg.vbsupport.ru/showthread.php?t=228112
In the page.php file i include script.php after global.php
require_once('./global.php');
require_once('./script.php');
What i still don't understand is where i now have to put "myfunction();" to show the output in a vbulletin page.
In the template? In a plugin?
Thanks for your help! Really appreciated!
Schoelle