Jump to content

I have several questions ! I have to build something pleaase answer me


innocent15

Recommended Posts

Hello

 

I'm new to your forums and I hope you'll help me, I'll try to explane what I wanna do :

 

- I have over 10 zip files per day, I have to extract each one, and find the "style.css" file, Open It, replace the word "LEFT" by the word "RIGHT" and replace the word "RIGHT" by the word "LEFT" at the same time, and then I have to find all images (jpg, JPG, PNG, png, GIF, gif only), and to create the same images (the same name and the same extension) but the image is like in mirror, it is reflected, like if we change the direction of the image (like in a mirror). and then zip the files again and add (_new) to the file. (if the original is dafault.zip, the new is default_new.zip)

 

Hope you understood me, and hope you'll help me :)

FYI: this board is for getting help with problematic existing code, if you want someone to make something for you you need to see the freelance board.

 

I can't think of anything existing to do what you want to do but there are PHP functions to read/change/and save files and handle compressed archives. as well as some systems to edit images.

 

http://us3.php.net/zip

http://us3.php.net/manual/en/function.file-get-contents.php

http://us3.php.net/manual/en/function.file-put-contents.php

 

GD is something else that edits images but in your case it might be easier to look into:

http://us3.php.net/manual/en/book.imagick.php

 

I have not used it yet but I think they have better image processing functions than GD.

 

I hope that's enough help for you that's the best I can do short of starting to build the system for you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.