Jump to content

Archived

This topic is now archived and is closed to further replies.

Rianna

PHP timer question please.

Recommended Posts

Hello, I prefer using php but someone said you can't rotate ads on a timer using php, you have to use javascript, is that true?

Thank you very much!

Share this post


Link to post
Share on other sites
PHP is server side, so Nothing will happen to ur site without a reload
You will need to use Client Side Scripting (Javascript for example)

Share this post


Link to post
Share on other sites
Is javascript the only option, will any other scripts that you know of do it as well? Trying to avoid javascript for a few reasons. Thanks.

Share this post


Link to post
Share on other sites
Surely rotating ads on a timer is a bad idea.

If I go to a page with a banner at the top and I scroll down to read that page, it's going to make no sense if that banner changes to something else after five minutes, as I won't be able to see it.

I think you'd be better coding the server-side to deal with which banner's are shown when, and just have the front-end display them.  It means not having to use JavaScript and probably better control over what's seen where and when.

There's some examples of such [url=http://www.phpclub.net/?m=app&s=62]here[/url] that maybe able to give you a few ideas.

Regards
Rich

Share this post


Link to post
Share on other sites
What I would do on the advertisments, is have each add, with a id Number
then using the rand() function, randomly select a number every page load
then every time the page loads, a random add is shown to the user

Share this post


Link to post
Share on other sites
OK, I get what you mean, I should have also said text. If I want the text to change, I have some odd things going on, on my pages so I will need it. What about it? Javascript the only good second, minute, and even hour timers? Thanks much for the thinking outside the box, anyway as you both do. ;) Its appreciated.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.