我有上传网站,我想知道如何通过php知道服务器的空间?
例如:if($_FILES ...) {
if($server_rest_space enough for the file){
// upload it!
}
else{
echo 'no space on your server enough!'; //there is no space!!
}
如果服务器已满,另一个重要问题!如果有人上传文件,是否会出现错误?
谢谢
尝试使用disk_free_space()
我有上传网站,我想知道如何通过php知道服务器的空间?
例如:if($_FILES ...) {
if($server_rest_space enough for the file){
// upload it!
}
else{
echo 'no space on your server enough!'; //there is no space!!
}
如果服务器已满,另一个重要问题!如果有人上传文件,是否会出现错误?
谢谢
尝试使用disk_free_space()