Hi
I need to manipulate a file name to transfer images from a suppliers feed.
This is what I start with.
suppliersname.com/prod_images/image_cat41/2681_image1_electric-starter-1.jpg
This will be in the variable $image_in
I want to manipulate this so that it will extract the file name, place an _1 at the end of the file name, but before the .jpg, and add images/ to the beginning of it like ths
images/2681_image1_electric-starter-1_1.jpg
This will then go in the variable name $image_out.
Can anyone give me any idea how this can be done.
Thanks for any help.



