F
F
freeman02042017-01-12 22:11:57
PHP
freeman0204, 2017-01-12 22:11:57

How to make an ad up function in php?

For example, every hour automatically raise the ad to the very top. The announcement is basically a post. Without using crown. Is it something to do with css?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Volf, 2017-01-12
@freeman0204

Without using crown. Is it something to do with css?

Hardly... When it comes to cascading style sheets.
This can be done, for example, by running a PHP script from the CLI (i.e. from the command line, so that it does not interrupt after 30 seconds, as it usually happens). This script starts an infinite loop, in which it will check how much time has already passed and raise accordingly. ads/posts up.
Or, at each request, before displaying these same ads, check the time and if the hour N has come - raise the corresponding. up ad.
It will be:
a) in PHP
b) without CRON

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question