Advice on uploading images on server in one package

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Advice on uploading images on server in one package

Post by ddragas »

Hi all

I need advice of resolving problem with uploading images on server in one package.

My client has shop with 8.000 articles and 8.000 jpeg images. Each picture name is code of article (example 7765456.jpeg where 7765456 is code of article)

Is there a way to upload pictures in one (or more) packages?


My opinion is to make it like this:

- Put pictures in zip file (on local machine)
- Upload and unzip that file on server in one folder
- check each picture name
- move picture on folder with name - code of article
- update path of the picture in database
- unlink uploaded file on server

All suggestions are welcome

regards ddragas
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

your idea sounds roughly okay.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Is there a class or function for unziping file?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Look in Code Snippets.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

thank you feyd :D :D

always helping people on resolving problems

regards
Post Reply