PHP - 无法打开流:权限被拒绝

时间:2012-12-09 14:35:23

标签: php file-upload

我无法将文件上传到我的网站。

代码:

$tmpFilePath = $_FILES['upload']['tmp_name'][$i];
  //filepath
  if ($tmpFilePath != ""){

    //Setup the new file path
    $newFilePath = "./uploads/$keuze/" . $_FILES['upload']['name'][$i];

    //Upload the file into the temp dir
    if(move_uploaded_file($tmpFilePath, $newFilePath)) {

       //unfinished

    }

这与xampp完美配合,但现在该网站在线,我收到以下错误: 警告:move_uploaded_file(./ uploads / barbeque 2012 / endless.jpg)[function.move-uploaded-file]:无法打开流:/home/arnoudi26/domains/creemersa.be/public_html/upload.php中的权限被拒绝第36行

我已经设置了读/写整个地图的权限,但仍无效。

0 个答案:

没有答案