Simple PHP-file for renaming

Completato Pubblicato Aug 28, 2014 Pagato alla consegna
Completato Pagato alla consegna

Our HikVision webcams drop all webcam images in the root directory of a site. It also uses specific names for each imagefile consisting of the IP-number of the webcam and the snapshot time.

We would like to have a php-scipt that will run as a cron-job on the server. We want the script to look into the rootdirectory of the server every X seconds to look for newly uploaded files, rename the newest new file only to [NAME] and to move it to directory [DIREC] after that all imagefiles (normally one) with the long name in the root have to be deleted. The amount of files to be converted can be more than one. For me to define in the file:

- Based on prefix the new name of the file and of the directory to move it too. For example:

192.168.1.35_and so on will become PIC1 (which is the [NAME] variable) and will be moved to the IMAGES directory (which is the [DIREC] variable.

So as said more than one file are possible so if the script finds for example a file like 192.168.1.37_and so on it will be come PIC3 and also be moved to the directory called IMAGES. All of this of course it has been defined by me as such in the scriptfile.

The maximum budget available for this simple scriptfile is $. 25,-

The file will run as a Cron-job on the server.

Attached an image with the files one cam. In this case only the newest one (with the highest number behind the 192.168.1.35_ has to be converted, after that all 192.168.1.35_and so on files in the root will be deleted.

JavaScript PHP

Rif. progetto: #6382478

Info sul progetto

8 proposte Progetto a distanza Attivo Aug 29, 2014

Assegnato a:

exaltedsol

Hi, I checked your ftp dir png file I can do it now, in couple of hours, I will do it in php and then set to cronjob, waiting for your reply... Thanks, ES

$25 USD in 1 giorno
(16 valutazioni)
3.5

8 freelance hanno fatto un'offerta media di $36 per questo lavoro

toinnisfree

A proposal has not yet been provided

$30 USD in 1 giorno
(628 valutazioni)
8.1
rajeshsonisl

Hello, With 99% completion rate, 700 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page !!)... you can never go wron Altro

$54 USD in 1 giorno
(511 valutazioni)
7.5
techwelfare

hi we could do it perfectly with accuracy, please let us know if you want any clarification. if you want us to share our skill and previous work please initiate the chat by replying..

$59 USD in 1 giorno
(76 valutazioni)
6.4
samson1122

Hi, I read your description. before 3 hours, I just finished a job like this. If you give me only 1 hour, I'll finish this project. I have experienced projects exactly like this for 10+ years. Best regards. Altro

$25 USD in 1 giorno
(3 valutazioni)
3.3
aazni

Currently i'm working with any cron project, at least i have my own library / function to create or move file to any destination path. My always working area is PHP programming, Database Designing and System maintaini Altro

$25 USD in 3 giorni
(0 valutazioni)
0.0
mohamedasaad2

hi, I am very interested in your project,I read your requirement and understand it,and I can do it. I have time and experience to working in your project. you will get high work satisfaction because I need your good Altro

$20 USD in 1 giorno
(0 valutazioni)
0.0