The applet is now appearing as hoped for in the header on the site. It involved the following modifications
- Modified cron perl script to write updates to a "simple.txt" file.
- Added the following lines on global.php:
// ###################### Import applet #######################
// start snag applet
$datadir = "/home/www/truckz.com/htdocs";
$file = fopen("$datadir/simple.txt", "r");
$simpletext = fread($file,8192);
fclose($file);
- Added the following include under global on header.php --> $simpletext
- Applied the $simpletext reference where I wanted the applet to appear in the themeheader template.
That was it! You can check the regularly updating applet in action at
http://truckz.com. Thanks for your comments and observations.