PHP help

opel70

Joined: 2002-11-07
Posts: 79
Posted: Mon, 2002-12-30 21:28

Hello,

I use Gallery, and know that the people here can be very helpful, so I thought I'd pose this question here.

I am looking to do a SMALL project that I think would be easiest done in PHP. I have a webcam that saves an image every half-hour to a time named file (so it gets overwritten at the same time everyday). But this means that at 3:15p on any given day, the 3:00p file is today's image and the 3:30p file is yesterday's. Also, it saves the images based on sunrise / sunset times so, for example, in the winter it will save from 5:00a - 5:30p, but come summer it may save from 4:00a - 9:30p.

So, what I would like is a dynamic web page that will take all of these files, sort them by time and date saved, and then display the ones from the last 24 hrs in order. And maybe have a bit of a break at the night break.

I figure this should be doable in PHP, but I'm not even sure where to begin (always my weakest point in programming). I thought someone here might be able to point me in the right direction with maybe an example page or two. (Even if there is a section in the Gallery code that may help)

Thanks, Tim

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Tue, 2002-12-31 23:40

In general, the first step would be to scan through the annotated help at
php.net. Take a look at the filesystem functions and see what additions
and comments people have left. There are lots of little snippets contained
there that may be useful.