Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    122
    Plugin Contributions
    0

    Default Some help please with file name manipulation

    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.
    Last edited by chalfontgifts; 12 Aug 2008 at 05:32 PM. Reason: link removed

 

 

Similar Threads

  1. v150 Help Please - need help with .htaccess file
    By timb22 in forum General Questions
    Replies: 14
    Last Post: 6 Apr 2015, 08:21 PM
  2. truncate file download name help please?
    By bonnit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Sep 2009, 10:20 AM
  3. Help Needed ASAP - File Name with Store Records
    By mlm2005 in forum General Questions
    Replies: 6
    Last Post: 31 Jan 2009, 01:22 AM
  4. Help with some changes please.
    By chalfontgifts in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Sep 2008, 06:14 PM
  5. Alittle code manipulation help please
    By RSprinkel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2007, 03:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg