Click to See Complete Forum and Search --> : Displaying Sequential jpg's


chaz_s1
01-10-2007, 01:20 PM
Greetings Fellow Members!

I need to inquire about setting up a web page that will display security camera images(whick are automatically uploaded) and named for the day, hour, minute...ie 121813.jpg ...DDHHMM. Because the cams are motion activated they could be named any number 1 thru 44640 (24hrs X 60min. X 31days)possible. I would like to display these with the most recent loaded first. I do have some programming skills...mostly ASM and CPP....and I have set up several webs. However none quite so complicated. I would SERIOUSLY appreciate any help you could render!!!

Chaz

WebJoel
01-10-2007, 02:33 PM
You request is out of my league but you remind of a free script over at www.dynamicdrive.com that lets you add images into a named folder and the web page will automatically load the images from this folder. -You do not have to cite the images as they are entered, merely their inclusion in this folder means their inclusion & display on the page. This might even have some ability to organize them into date-uploaded and display-first..(?)
I think that this is an RSS-feed thing... It might be in their 'XML & RSS' section.
That is about all that I can tell you about this... :confused:

Sheldon
01-11-2007, 06:26 PM
If you have PHP on your server I have a good script for you

chaz_s1
01-12-2007, 05:55 AM
Hi,
Thanx for your reply Sheldon, They do have php, perl...etc et al...
Where can I download the script?

TIA
Chaz

Sheldon
01-12-2007, 01:37 PM
try this

If it doesnt work post it in the PHP forum.

You must save it with a php ext eg: camera.php

<?php

#####################
//this is the path to the images
$path = "images/camera/";


if(($count = count($files = glob($path ."*.jpg"))) > 0)
{
foreach($files as $v)
{
$filemtime[] = filemtime($v);
}
array_multisort($filemtime, SORT_DESC, $files);

$content = "<img src=\"".makeimage($files)."\" alt=\"".$files."\" width=\"104\" /></a></p>
<p>D=".date("F d Y H:i:s.", filemtime($files))."</p>"."\n";

}

?>

Sheldon
01-12-2007, 01:45 PM
Sorry, That will only display the most recent image

Try this script to display all of them.

chaz_s1
01-13-2007, 07:57 AM
Hi Sheldon,

Thank you for the script. I won't have a chance until the first of the week to try it out...

Thanx again!!!
Chaz