free
This is our archive, please go to the main forum page for the latest discussions and news about free web hosting.


Good php and mysql ad system.

Koolguy
October 29th, 2000, 00:24
Could you recommened a good mysql and php ad rotation system. Im currently using the one from phpwizard but I'm having problems with the banners being displayed equally.

jw
October 29th, 2000, 03:02
Yeah, I had the same problem when I downloaded it, but its pretty easy to fix. I found the patch on the phpAds support board. In view.inc.php3 and kcsm.php3, change srand((double)microtime()*1000000); to srand (time());
Hope it helps :)

Koolguy
October 29th, 2000, 21:11
I did exactly what you said but it still didn't change anything, the four ads are the only ones that are being displayed. aAy ideas?

jvv
October 30th, 2000, 04:47
You might want to try out phpAdsNew
http://sourceforge.net/projects/phpadsnew/

I haven't tried it myself, but it does get a high rating on script directories.

Koolguy
October 30th, 2000, 18:24
I got it working with this code:

function myshuffle($array)
{
mt_srand((double) microtime() * 1000000);
$num = count($array);
for ($i = 0; $i < $num; $i ++)
{
$n = mt_rand(0, $num - 1);
$temp = $array[$n];
$array[$n] = $array[$i];
$array[$i] = $temp;
}

}





  
  News · Search free hosts · Free file hosting · Free image hosting · Reviews · Forums · Related Links · Advertising Info · Contact Us


Copyright © 1996-2008 Per Olof Sandholm. All rights reserved. Privacy Statement

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum