You are here: Re: How to change pictures everyday using php « All PHP « IT news, forums, messages
Re: How to change pictures everyday using php

Posted by Tony on 10/10/31 11:17

"Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote in message
news:5gKme.25959$d5.176406@newsb.telia.net...
>
>>
>> If you use a database, simply use that as a source to create the arrays.
>> --
>
>
> Do you imply that I would not necessarily need a database and just write
> the
> file extension and the path of each picture?
> That might work well for 7 pictures but what about 800?
>

If you're using sequential numbers and they're all in the same directory,
that wouldn't be much of a problem. If they're all different names and/or
they're in different directories, it would get more complex.

Why not give a little more detail? You want to show a different picture
every day - is that every day of the week (every Monday shows the same pic),
every day of the month (the 1st always shows the same), every day of the
year (Feb 1st always shows the same, every year)?

Not meaning to sound condescending - but 800 pictures would take about 2-1/2
years to cycle through. Even for a different picture for every day, you
wouldn't need more than 366 pictures (an extra for leap year :) )

If I was doing anything monthly or less, I don't know that I would bother
with a database.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация