我无法将文件上传到我的网站。
编码:
$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]:无法打开流:第 36 行 /home/arnoudi26/domains/creemersa.be/public_html/upload.php 中的权限被拒绝
我已设置读取/写入整个地图的权限,但仍然无法正常工作。