Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 3rd, 2008, 7:00 PM   #11
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8 Ooble is on a distinguished road
Re: Adrotator

Unfortunately, any alternatives make use of variables which must stay static in between page views, which with PHP means memory caching or database usage, both of which are far slower and probably pointless when compared to a simple random number generator. My advice would be to go with rand unless not having an equal view count for each ad would be disastrous.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 3rd, 2008, 7:14 PM   #12
kinuthia
Newbie
 
Join Date: Jun 2007
Posts: 9
Rep Power: 0 kinuthia is on a distinguished road
Re: Adrotator

Thanks ooble.

In ASP you can have the number of impressions which determines how often the ad is displayed compared to the other ads in the advertisement. Is it not possible to do the same in PHP?
Regards
kinuthia.
kinuthia is offline   Reply With Quote
Old Feb 3rd, 2008, 9:19 PM   #13
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,722
Rep Power: 5 Sane is on a distinguished road
Re: Adrotator

Anything is possible in PHP; but you have to understand the language first. You could pay me to write a fully functioning adrotator for you. Or you could learn the language and do it easily yourself.

But for your earlier question: Can you show us the code that's giving you trouble? The two files I posted should work (aside from the typos).
Sane is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC