php or server error???

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

  1. #1
    the main 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. Syndrom

    Syndrom Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe they upgraded gb library to a newer version.
    Check your script for incompatibility.
     
    Syndrom, May 10, 2009 IP
  3. gspabla

    gspabla Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    HOW can i check this??
     
    gspabla, May 10, 2009 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Well - if you post the upload-script here, or at least the part where filename is assigned, path chosen and query run, we might be able to give you some pointers. The full upload-script would probably be best, though.
     
    PoPSiCLe, May 13, 2009 IP