Is banners.dat getting loaded? Make sure banners.dat is in the right place with right permissions.
Does the file contain blank lines?
Another change I would make, not related to the problem:
Does the file contain blank lines?
Another change I would make, not related to the problem:
PHP Code:
$select=count($banners) > 1 ? rand(0, count($banners)-1) : 0;
Comment