php script or server problem?

Discussion in 'PHP' started by gspabla, May 10, 2009.

  1. #1
    the ain problem is when a user uploads a photo to my site, the script converts the file name to something like 863d56ec9a75c15fbad89e8c046f43e1.jpg, and storing this file name to mysql database, and everything was doing fine.
    but now when i try to upload a pic, after uploading the pic is not appearing coz the entry now in database is like http://www.sitename.com/memphoto2//5b06e1969ac7c2be6d9872feb7d739adjpg
    (note extra things like site link, foldername, double back slash, and no dot before jpg in the last)

    my hosting provider told me that they re-installed or upgraded GD Library (and may be something else) on server 2-3 days back.

    and i havnt change any code or anything in site from 15 days
    so what do u think where the problem is???????
     
    gspabla, May 10, 2009 IP
  2. phpguru9090

    phpguru9090 Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i can fix this send me a pm
     
    phpguru9090, May 10, 2009 IP
  3. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    SSANZ, May 11, 2009 IP
  4. somanweb

    somanweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    did you check the database field value ?
    Is the field valaue have the dot before jpg ?

    I don't think, it is a server issue.

    Soman
     
    somanweb, May 11, 2009 IP