Hello,
My PHP script that uploads a file, cannot do so in directories at a higher level than itself.
For example: it will save in upload/ (a relative path at the same level as the script), but not in /usr/local/hello/ even though the file permissions are exactly the same. There are no issues with max upload size, max post size, execution time, and safe mode is off. Anyone have any thoughts? I can't even get an error message out-- just the $worked below returns false when it fails.
<?php
// Removed the rest of the error-checking code!
$contentDir = "/usr/local/hello/"; // <-- doesn't work, chmod 0777, owner: root, group root
//$contentDir = "upload/"; <-- works, chmod 0777 owner: root, group: root
error_reporting(E_ALL);
$filename = $_FILES["filey"]["name"];
$worked = move_uploaded_file(
              $_FILES["filey"]["tmp_name"], 
              $contentDir.$filename);
var_dump($worked);
?>
Edit: My open_basedir settings, given by phpinfo(), are:
Directive     Local Value   Master Value
open_basedir  no value  no value
Thanks!