Bug Fix Needed - $5

Discussion in 'Programming' started by mcmuney, Nov 2, 2009.

  1. #1
    I need a bug fix done on my script. My server recently turned on SAFE MODE, which they won't remove. I've been told that I can fix the problem by modifying my PHP code. The script is to upload image files. Now, it shows the following errors when uploading:

    Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 645 is not allowed to access /home/pickaloo/public_html/photos/11-01-09 owned by uid 99 in /home/pickaloo/public_html/index.php on line 157
    
    Warning: rename() [function.rename]: SAFE MODE Restriction in effect. The script whose uid is 645 is not allowed to access /home/pickaloo/public_html/photos/11-01-09 owned by uid 99 in /home/pickaloo/public_html/index.php on line 183
    
    Code (markup):
    The two lines that are referenced as the error are:

    
    157: if(move_uploaded_file($_FILES['filename']['tmp_name'], $target))
    183: rename("photos/$date/$filename", "photos/$date/$pt2");
    
    Code (markup):
    I'm told the error has something to do with the UID's being different.
     
    mcmuney, Nov 2, 2009 IP
  2. mcmuney

    mcmuney Well-Known Member

    Messages:
    834
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 3
    #2
    This has been resolved. Thanks.
     
    mcmuney, Nov 4, 2009 IP