Good Day happy people.
Please I have been trying to get the server backup-disk space from a cpanel account with the below php code, but I keep getting error:
code:
$df = disk_free_space("/backup");
echo $df;
Error:
PHP Warning: disk_free_space(): No such file or directory in /home/username/public_html/test.php on line 137
I have added the cpanel user to the root group(I have root previlage ), the "/backup" drive permission is 0771 and the user can execute exec() command.
Kindly help.
Please I have been trying to get the server backup-disk space from a cpanel account with the below php code, but I keep getting error:
code:
$df = disk_free_space("/backup");
echo $df;
Error:
PHP Warning: disk_free_space(): No such file or directory in /home/username/public_html/test.php on line 137
I have added the cpanel user to the root group(I have root previlage ), the "/backup" drive permission is 0771 and the user can execute exec() command.
Kindly help.