Hi! I want this php code: let's say I have 31 images inside a directory named 01.jpg, 02.jpg ....31.jpg I want to rename them automatically via a script to something like red.jpg, white.jpg, blue.jpg, etc. example: 01.jpg ----> red.jpg 02.jpg ----> white.jpg ....................... 31.jpg -----> blue.jpg The list of colors is defined by me (red.jpg, white.jpg ... blue.jpg...) So basically I want to rename the pics to a pre-defined list of names. In exchange I will offer you a free listing on my PR5 directory: http://www.greenlettuce.info which has PR4 pages Thank you.
I don't want to use rename via FTP because it takes time to rename 31 files and their names are not so easy (red, blue is just an example)
it doesn't matter what order... color is just an example if anyone can write me the php code I'd appreciate - and you get the listing on my PR5 directory of course
Please provide an indepth detail of the script required... Let's say you have 3 images on your server .... Apple Mango Grapes ... Now you want them renamed as, Guava Banana Melon So how would you define the set off renaming ?? Would you want the script to be like ?? Rename >> 1. [Text Box] to [Text Box] 2. [Text Box] to [Text Box] 3. [Text Box] to [Text Box] (Submit Button) So you enter like 1. [Apple] to [Banana] 2. [Mango] to [Guava] 3. [Grapes] to [Melon] Press Submit ... and they are renamed ?? Something like this ... or maybe a drop down menu containing the names ?? Please elaborate ... Abhishek
YES, a form would be great - but the difference is that all the fields are already completed - I just have to push the "rename" button example: 01.jpg >>>>>>> mango.jpg 02.jpg >>>>>>> apple.jpg .................................... 31.jpg >>>>>>> honey.jpg If you can help me with the code for 2 fields it's ok - I will figure out the rest by myself. Thanks.
Don't you not understand? mango, apple, where will you set this damn, will cript make this random... jao...
I think you will need an array. Store your names in a .csv file and load them using the script into an array and then do the renaming. I would write a script for you but I don't do freelance work.
you can write anything instead those names (orange, apple, banana, etc) - I just want to rename 31 files (named from 01 to 31) to 31 fixed values via a script
Aargh!!! Send 10$ to my paypal ... and will make one of my data entry workers do it for u .!!!You want a godammed script to be coded to rename 31 files ?? And you waited the whole day ?? In so much time I could have renamed the whole bunch a 100 times!!! Abhishek