![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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. |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Jun 2007
Posts: 15
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#13 |
|
Programming Guru
![]() |
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). |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|