I would like to run a php script that checks the quota of my webserver. Is there a php variable that I can run to get the quota of the box it is running on.
thanx
I think you can do this via the system() function.
http://us4.php.net/manual/en/function.system.php
I tried and tried to get the quota command to work with system, but unsuccessful. Any help would be awesome.
Bleh, that's the only real idea I had.... I am not familiar with FreeBSD really.
Post what code you were trying to use with the system function.
<?php $quota = system('quota', $retval); print "$quota"; print "$retval"; ?>
What does that code print?
127
thats it
What number are you trying to get?