PHP Help - Images dont show up

Discussion in 'Programming' started by movidalatina, Oct 10, 2007.

  1. #1
    I spent all morning trying to figure this out.
    hopefully some can help me out. the script
    i have seems like it will use up all kinds of bandwidth
    so i figure id use my photobucket images instead of
    hosting all those images. here is the script- hopefully someone
    will tell me what should be altered. the thumbnails dont show up
    it doesnt pick up the contents in that folder..it starts at 1, there is no image
    numbered 1. site example page Resolv3dera.com

     
    movidalatina, Oct 10, 2007 IP
  2. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The code you posted isn't doing anything but scanning a directory. I typed in http://www.resolvedera.com/Alcohol/ and came up with all your images. It's taking all those image names, and you are slapping a URL on them. I checked your PhotoBucket, and you have some things such as "http://i160.photobucket.com/albums/t162/hotlyts24/socomments/watsip/whats_good.gif".
    If the filename doesn't match, then it won't work. Besides, this is a really weird way to do it. Why not just have a database of images, and you put in the URL pointing to photobucket?
     
    MetaCipher, Oct 11, 2007 IP
  3. movidalatina

    movidalatina Well-Known Member

    Messages:
    1,268
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    105
    #3
    man if i knew i would. but that's how that script is set up
    hence the reason im asking for help :)
     
    movidalatina, Oct 11, 2007 IP
  4. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Okay, try this then. Instead of loading files, set your $files variable to a list of images:

    $files = Array(
    "http://i160.photobucket.com/albums/t162/hotlyts24/socomments/watsip/whats_good.gif",
    "http://i160.photobucket.com/albums/t162/hotlyts24/socomments/watsip/whats_good.gif",
    "http://i160.photobucket.com/albums/t162/hotlyts24/socomments/watsip/whats_good.gif"
    );

    When you print images out, don't put <?php echo $urlpath . $file; ?> just put <?php echo $file; ?>
     
    MetaCipher, Oct 12, 2007 IP
    movidalatina likes this.
  5. yanikeke

    yanikeke Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Wow - that was excelent advice..
     
    yanikeke, Oct 12, 2007 IP
  6. movidalatina

    movidalatina Well-Known Member

    Messages:
    1,268
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    105
    #6
    Metacipher..thanks alot..that helped me out
    alot..green for you
     
    movidalatina, Oct 13, 2007 IP
  7. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Am I sensing some sarcasm?
     
    MetaCipher, Oct 14, 2007 IP
  8. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You're welcome. :)
     
    MetaCipher, Oct 15, 2007 IP