SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot Jafar's Avatar
    Join Date
    Jun 2005
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload problem, plz help me

    Hi,
    i have shared hosting and when i try to use php upload functions to upload an image or file, i get an error that says 'permission denied'

    "i test my script on my other accounts and have no problem with them."

    they turned off safe mod but i can not upload any file and a same error has occured.

    my question is what settings shoud be set in php.ini to disable or enable uploading?
    thanks

  2. #2
    SitePoint Enthusiast XRay's Avatar
    Join Date
    Aug 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jafar View Post
    i get an error that says 'permission denied'
    What are permissions for that folder? did you try to set them to 777?

  3. #3
    SitePoint Zealot Jafar's Avatar
    Join Date
    Jun 2005
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by XRay View Post
    What are permissions for that folder? did you try to set them to 777?
    Yes, but for security issue i don't use it.
    default is 755

  4. #4
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you use "copy" command change it to "move_uploaded_file"

    if not work please let us c the code
    Open Blocked website
    Open Blocked Website
    Knowledge Is Knowing That A Tomato Is A Fruit,
    Wisdom Is Not Putting It In A Fruit Salad.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •