PHP file management VERY SIMPLE

NO database work needed whatsoever.

what I am looking for is to have someone create some functions:

1) "UpLoad_mg($step,$prefix)" this function will be called after a file has been uploaded to a server, it will server a couple functions, each step will be described below however this is to be a single function:

STEPA - Extract the contents of the zip file that is uploaded to a pre-determined temp folder (this will be step 1, this part is simple, I have a working version of this part already, just isn't quite clean on the back end as it leaves some wierd permissions issues and I cannot delete the folder after I'm done.)

STEPB - will rename all images within the sub-folder of the extracted zip file to include at the beginning the "prefix" assigned.

then move them to the "images" directory

STEPC - this is the cleanup section, the zip file and all files / folders created in STEPA (within the temp extraction directory) are to be removed at this point.

I should be able to run my other code in between each this is why I need the function to handle different steps.

steps a & c do NOT need the 2nd variable ($PREFIX), only the step B needs this.

example of what I will be doing is:

html form submits a file to the server .....

php code runs:

$step="A"; $prefix="";


//run my other code here

$step="B"; $prefix="1101080008_";


//run my other code here

$step="C"; $prefix="";


//anything else I want / need to do from that point.

as for variables:

the upload directory is defined at a variables page

the images directory is defined at a variables page

I think the description is relatively clean and straight foreward, please there is no other information I will provide about the remainder of the project or what else will be done in between, just need to break down where and how I requested. seperate functions would be acceptable, but not the prefered method.

you will NOT have ftp access to my server, therefore I will need to make sure that you are available for about 1/2 hour after delivery to make sure everything is working.

I also realize this is a VERY small project, and would expect that it be completed within a couple of hours of awarding, as I need this done by 6am my time (GMT -6)

payment will be escrowed and payment will be guaranteed.

there may be other parts I may run across a need for help so when you bid let me know if you would be available for work yet at this time no 2 day deliveries.

Skills: PHP

See more: what is a temp, temp work, simple file database, prefix function, php description, parts database example, parts database access, how create form in php, ftp server zip, file expect, expect file, create php code, access parts database, access information management, what is database management, php create function, what is a php file, very, think straight, submits, php issues, need help to seperate, leaves, information management, file

About the Employer:
( 17 reviews ) Jasper, United States

Project ID: #212417

Awarded to:


I am ready for your work.

$30 USD in 0 days
(42 Reviews)

2 freelancers are bidding on average $30 for this job


I can do this, please check pmb

$30 USD in 1 day
(0 Reviews)