Re: Joke of the day problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Delta Storm wrote:

> Hi,
> 
> again me with the silly questions...
> 
> I need a script that will take data from MySQL database and display one
> row each day.
> 
> I have googled, but with no luck.
> 
> The database retrieving mechanism is of course clear but I really dont
> know how to do a 24h delay before the next row is displayed.
> 
> 
> Thanks in advance :)

I do something similar on my sites. Rather than hit "fortune" for every page
view, I have a process that runs fortune and pipes the output to a file
every so often. Then for sites that need a cute quote, just include as a
<PRE>...</PRE> formated element.

It reduces the load quite a bit.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux