I am in charge of a website that was created in PHP that enables the web administrator to upfile an mp3s that can later be downloaded from wellspringcolorado.com/events.php . I was not the creator and really don't know to much about it php coding. I am having problems in uploading new files from the manager site and this error keeps coming up.
Warning: copy(/home/wellspri/public_html/files/20070215091704boss.mp3): failed to open stream: Permission denied in /home/wellspri/public_html/manage/common/upfile.php on line 96
File boss.mp3Upload failed£¡
Here is the code from line 96 on
if(copy($UploadFile,$FileName)) //上传文件
{
//保存?h除的文件 路??
// echo "文件 $UploadFile_name ($FileSize)上载成功!";
// echo "<script language='javascript'>opener.document.all['delete_file'].value +=';'+opener.document.all['". $ctl_id ."'].value ;opener.document.all['" . $ctl_id . "'].value='" . $sUploadPath . $FileNameFull . "'</script>"; //
//路径返回
echo (" <script language='javascript'>");
echo (" opener.document.all['" . $sCtl_id . "'].value = '" . $sUploadPath . $FileNameFull ."' ;");
echo (" </script>");
// echo $sUploadPath."<br>";
// echo $FileNameFull;
//自动关闭窗口
echo("<body onLoad='setTimeout(window.close, 3000)'><center><br><br>Uploading is seccessful!<br><br>Please close this window</center></body></html>");
}
else
{
echo "File ". $UploadFile_name."Upload failed!";
}
unlink($UploadFile);
}
else //文件已经存在
{
echo "<font size=2>File". $FileNameFull." already exist!Please change the file name  [ <a href=# onclick=history.go(-1)>Upload Once More</a> ]</font> ";
}
}
else //上传的文件为空
{
echo "<font size=2>Please make sure that your file's size doesn't beyond the permission! [ <a href=# onclick=history.go(-1)>Upload Once More</a> ]</font>";
}
set_time_limit(30); //恢复缺省超时设置
?>
</html>
As you can see some of the code is in Chinese. Do you think that the server in the US might have a hard time reading this? Anyway can you please take a look at it and see if there is an easy fix. It seems to work fine in China.