Dynamically change path to image files?

Discussion in 'Site & Server Administration' started by BiGRob, Apr 5, 2007.

  1. #1
    Hi

    is there a way to change

    domain.com/:700/imagedir/imagefolder/image.jpg

    to remove :700

    domain.com/imagedir/imagefolder/image.jpg


    On all pages under a directory

    Using, modrewrite or a sql update sting

    thanks
     
    BiGRob, Apr 5, 2007 IP
  2. stugs

    stugs Peon

    Messages:
    157
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can remove :700 from the path variable dynamically with the command:

    $newpath = ereg_replace(":700","",$path)

    Basically it takes :700 and replaces it with nothing.
     
    stugs, Apr 5, 2007 IP
  3. BiGRob

    BiGRob Well-Known Member

    Messages:
    397
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #3
    use this command in phpmyadmin??
     
    BiGRob, Apr 5, 2007 IP
  4. BiGRob

    BiGRob Well-Known Member

    Messages:
    397
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Ah I see its a php command

    This didn't work, I think it's because its an image url
     
    BiGRob, Apr 7, 2007 IP