I'd like to make a script that allows me to upload a single image to my website and makes three copies of that image, resizes them, and places them in their proper directories.
For example: Image 11a.jpg 1280x8001b.jpg 600x3751c.jpg 200x125Each would go into a different folder according to their letter. I need a simple upload form that allows me to choose the image from my computer, and have it resize, copy, and place them in the folders. It wont be a public form. It's just to make my life easier as I have several hundred images to upload. XD. Can anyone help? I'd appreciate it.
Why write a program to do that server-side?
Write a form that allows you to upload to a directory then write a client-side application to do it for you.http://php.net/manual/en/book.image.php
I managed to make the script but im having one little problem.
I need to add the letter "A" to the end of the file's name. How do I do that when this is the naming code:$filename = "uploaded/images/". $_FILES['file']['name'];I tried using:$filename = "uploaded/images/". $_FILES['file']['name']."A";$filename1 = "uploaded/images/". $_FILES['file']['name']."B";$filename2 = "uploaded/images/". $_FILES['file']['name']."C";But that just adds it to the end of the extension. I don't want it on the extension. I want it added to the file name before the extension. XDnvm, i got it.