In Progress

PHP image website script

I have a webcam that uploads images with random names every 3 seconds. I need 3 things:

1) Find second newest image (not newest as sometimes this isn't fully uploaded when it is fetched). This then must be updated every 3 seconds while website is open - without web page refreshing, only image. Timestamp showing date and time image was created in GMT to be included under image.

2) Create looping animation of previous 60 newest JPG images (from oldest to newest) at a speed of 3 images per second

3) Display 60 newest images from oldest to newest in a list . Timestamp showing date and time image was created in GMT to be included under each image.

Code to help:

I have used this PHP to find the newest image - but not the second newest image:

<?php

$base_url = 'page/images';

$newest_mtime = 0;

$show_file = 'page/images/[login to view URL]';

if ($handle = opendir($base_url)) {

while (false !== ($latestFile = readdir($handle))) {

if (($latestFile != '.') && ($latestFile != '..') && ($latestFile != '.htaccess')) {

$mtime = filemtime("$base_url/$latestFile");

if ($mtime > $newest_mtime) {

$newest_mtime = $mtime;

$show_file = "page/images/$latestFile";

}

}

}

}

echo '<img src="' .$show_file. '" alt="Latest from the web">';

?>

Also I made this loop when the image was always update with the same name, this doesn't;t work now that images have random names:

<table>

<tbody>

<tr>

<td align=”center”><img src=”[login to view URL] alt=”Image will refresh every 0 Minutes 5 Seconds” width=”640″ height=”480″ name=”tcimage0″ border=”1″ /></td>

</tr>

<tr>

<td>This is my webcam…</td>

</tr>

</tbody>

</table>

<script type=”text/javascript” language=”JavaScript”>// <![CDATA[

var tcimages = new Array();

tcimages[0] = “[login to view URL]”;

interval = 5000;

function Refresh() {

for (i=0; i<=0; i++) { tmp = new Date(); tmp = “?” + [login to view URL](); [login to view URL][“tcimage” + i].src = tcimages[i] + tmp; } setTimeout(“Refresh()”, interval); } Refresh();

// ]]></script>

</tbody>

</table>

Skills: AJAX, HTML, HTML5, Javascript, PHP

See more: php top script, listing php script, php script app, best php blog script, script images gallery, php and script, top 10 php script, php script collection, php school website script, php extract website script, php viewed website script, php review website script, php freelance website script, php coupon website script, php church website script, php check website script, php mirror website script, logo image website script, free php coupon website script, php model website script

About the Employer:
( 0 reviews ) United Kingdom

Project ID: #17216922

Awarded to:

arennalbandyan1

Hello dear customer I am writing this letter to You in a hope of cooperation. I am a professional web developer with excellent background in computer programming. Within the years I have been working on such projects More

$17 USD in 1 day
(0 Reviews)
0.0

22 freelancers are bidding on average $46 for this job

infowider11

Hello, Yes i do these 3 requirements to you as per you need. How are you? Thanks For Providing Me This Great Opportunity. I am Shweta. i saw your post, i am showing interest to your job bcoz,I am Full Tim More

$250 USD in 1 day
(75 Reviews)
7.2
rahul668

Hello, Hope you are doing well..!! Please connect back and share the details of the project so that we can discuss about the scope of the project. I have my expertise in HTML, PHP, CSS, JavaScript and I set up More

$166 USD in 3 days
(22 Reviews)
6.6
krishan725

Hello, I am experienced in Website design & Development,Graphic Designing,Mobile app development. I promise to built good relationship so will give 100% best output from my end so that you Consider me for future More

$25 USD in 1 day
(76 Reviews)
6.3
michealperfect

Hello! sir i read this work and i m expert to php or lots of experience in this field.i must give you a better service than [login to view URL] contact me any time.! thanks :)

$35 USD in 2 days
(111 Reviews)
6.2
jayprakashyadav

Dear Employer, We have customized woo-commerce and their add-on to achieve the requirement of client also make high end customization on checkout page, Product filter, Product Ajax filter based on selection, Price More

$25 USD in 1 day
(15 Reviews)
5.5
prince369

hello sir i gone through your needs without wasting your time i request you just check my web portfolio [login to view URL] Looking forward to hear from you and keen to discuss further I am hav More

$20 USD in 5 days
(16 Reviews)
5.0
jayesh793

Its my pleasure to associate with you on this project! We can work together for long term in reagards to this project. - Project base - Hour based - weekly base - Monthly base Our work cycle : Analysis > More

$25 USD in 1 day
(26 Reviews)
4.9
adampohp79

Hi sir Your job is exciting me. That is a very simple job for me. I can do it in 3 hrs. I have 13 years experiment with php. Let me do this job for you now just to prove my expertise in this field. Hope I could a More

$35 USD in 1 day
(19 Reviews)
4.7
sitwebsolution

Dear Sir/Madam, Hello, Do you want to complete your whole project with 100% satisfaction? We are here. We are from S IT Solution, we're already skilled and experienced with your More

$24 USD in 1 day
(26 Reviews)
5.0
MaryumAkhter1

I have the ability to create back-end code that will add utility to everything the front-end designer creates. I'm passionate about the impact my skills can have in the real world, and firmly believe that I can creat More

$28 USD in 1 day
(4 Reviews)
4.0
$25 USD in 1 day
(2 Reviews)
3.3
stead121

Hey, Employer. I already have your description carefully. I am WEB Expert, so I will provide perfect result. Now i am free, I can start your project immediately. Get in touch me. Thanks. Thomas.

$15 USD in 1 day
(4 Reviews)
2.8
Tanviallcad

Dear Project Owner, This is Priyanka able to do your job, As we have number of software engineers at our development center on all the development platforms for more about us please visit [login to view URL] or fe More

$13 USD in 1 day
(3 Reviews)
2.6
arjun366333

Ready to start the work to PHP image website script, We can discuss more over chat, Thanks Regard Arjun S.

$25 USD in 1 day
(5 Reviews)
2.8
$15 USD in 1 day
(4 Reviews)
2.0
$25 USD in 1 day
(3 Reviews)
2.1
nxtvision03

Hello, We are part of "NxtVision" which is IT service provider. Our main focus is to provide the best service to the user with their satisfaction. Our company has 30 members with 5+ years of experience in PHP tec More

$133 USD in 6 days
(2 Reviews)
2.2
$15 USD in 1 day
(1 Review)
0.4
$45 USD in 2 days
(0 Reviews)
0.0
$30 USD in 3 days
(0 Reviews)
0.0