innocent15 Posted January 1, 2009 Share Posted January 1, 2009 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 Link to comment https://forums.phpfreaks.com/topic/139120-i-have-several-questions-i-have-to-build-something-pleaase-answer-me/ Share on other sites More sharing options...
DarkerAngel Posted January 1, 2009 Share Posted January 1, 2009 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. Link to comment https://forums.phpfreaks.com/topic/139120-i-have-several-questions-i-have-to-build-something-pleaase-answer-me/#findComment-727639 Share on other sites More sharing options...
innocent15 Posted January 1, 2009 Author Share Posted January 1, 2009 Thank you so much, the links are very useful, I'll try to get what I need, and to build my script. Link to comment https://forums.phpfreaks.com/topic/139120-i-have-several-questions-i-have-to-build-something-pleaase-answer-me/#findComment-727660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.