The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

open_basedir needed by users

Discussion in 'General Discussion' started by nyjimbo, Jul 6, 2007.

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Every now and then a customer wants to be able to do file uploads via php and finds that due to the open_basedir security they cannot access something like /var/tmp/phpxxxxxx

    Is there something else you can do besides relaxing open_basedir for that client ?. I know in the old days we didnt have this ability to restrict them but now that we can some people need it removed and I am concerned about the security of the system when they can access just about anywhere.
     
  2. trhosting.net

    trhosting.net Well-Known Member

    Joined:
    Mar 7, 2006
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Turkey
    Tell them to use move_uploaded_file() function.

    move_uploaded_file($_FILES['file1']['tmp_name'], $new_dest);
     
Loading...

Share This Page