php img not showing on myspace?

Discussion in 'PHP' started by StuntasticAudi, Mar 3, 2006.

  1. #1
    I have a website where users can upload their own pictures, then they are provided with an URL for that photo so they can display it on their website, blogs, forums..etc. Now here is my problem that i found.

    My code wont display on myspace..but it displays anywhere else..is myspace blocking php? does anyone know. here is what i'm trying to do. I want to display a photo:

    <img src="http://MYWEBSITE.com/pic.php=USER=PICNUMBER">

    USER - username of the person that uploaded a photo on my site
    PICNUMBER - just a number of the photo in the database

    so when i put this code on myspace it just gives me two dots. It works anywhere else. Does anyone know how to fix this? or is myspace just blocking it?
     
    StuntasticAudi, Mar 3, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    MySpace forces images to end with normal image extensions (.jpg, .gif, .png, etc.)

    Can fix it by mod_rewriting on your end and giving static (looking) URLs.
     
    digitalpoint, Mar 3, 2006 IP
  3. StuntasticAudi

    StuntasticAudi Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can fix it by mod_rewriting on your end and giving static (looking) URLs.

    What do you mean by that?
     
    StuntasticAudi, Mar 3, 2006 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    If your server is running Apache, check with your server admin if it supports mod_rewrite.

    Then read this thread.
     
    digitalpoint, Mar 3, 2006 IP