1
After 2 days of searching this site and others I'm stumped.
I have created a PHP script that basically shuffles some images about on the web page. The main file should be included once and then my idea was to echo a variable in each block.
For example block1 would have:
include('thefile.php');
echo"$output1";
So this includes my script, then the other blocks would be
echo"$output2";
And so on, a different variable in each block. My script works perfectly on my website (
http://www.glypo.co.uk/imageads4) however when I set it up in XOOPS (using blocks and selecting php as the type) the only block that works is the one with the include. And I tested this further by including the file in each block, this was the only way to get an output. However this messes up as my script as it should only be included once.
Any ideas why I can't pull out variables in one block if the file I include is in another block?Perhaps there is somewhere else I can include my script so I can echo the variable in a block?
Thank you!
-----
XOOPS Version: 2.0.13.1
PHP Version: 4.x
Web Server Software: Apache
Operating System: Unix
Theme: Default
Custom template: No