Sedang Disiapkan

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:


$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:




<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>



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




<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>



Kemahiran: AJAX, HTML, HTML5, Javascript, PHP

Lihat lagi: 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

Tentang Majikan:
( 0 ulasan ) United Kingdom

ID Projek: #17216922

Dianugerahkan kepada:


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 Lagi

$17 USD dalam sehari
(0 Ulasan)

22 pekerja bebas membida secara purata $46 untuk pekerjaan ini


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 Lagi

$250 USD dalam sehari
(75 Ulasan)

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 Lagi

$166 USD dalam 3 hari
(22 Ulasan)

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 Lagi

$25 USD dalam sehari
(76 Ulasan)

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 dalam 2 hari
(111 Ulasan)

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 Lagi

$25 USD dalam sehari
(15 Ulasan)

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 Lagi

$20 USD dalam 5 hari
(16 Ulasan)

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 > Lagi

$25 USD dalam sehari
(26 Ulasan)

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 Lagi

$35 USD dalam sehari
(19 Ulasan)

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 Lagi

$24 USD dalam sehari
(26 Ulasan)

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 Lagi

$28 USD dalam sehari
(4 Ulasan)
$25 USD dalam sehari
(2 Ulasan)

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 dalam sehari
(4 Ulasan)

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 Lagi

$13 USD dalam sehari
(3 Ulasan)

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

$25 USD dalam sehari
(5 Ulasan)
$15 USD dalam sehari
(4 Ulasan)
$25 USD dalam sehari
(3 Ulasan)

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 Lagi

$133 USD dalam 6 hari
(2 Ulasan)
$15 USD dalam sehari
(1 Ulasan)
$45 USD dalam 2 hari
(0 Ulasan)
$30 USD dalam 3 hari
(0 Ulasan)