[PHP] Determining system resources

2004-11-04 Thread Robin Getz
I have been unable to find a php function to determine available system memory (physical and swap)? Right now I am using something like: = # ensure there is enough free memory for the download $free = shell_exec('free -b'); $i=0; while ( $i != strlen($free) ) { i = strlen($free);

Re: [PHP] Determining system resources

2004-11-04 Thread Greg Donald
On Thu, 04 Nov 2004 08:25:19 -0800, Robin Getz [EMAIL PROTECTED] wrote: I have been unable to find a php function to determine available system memory (physical and swap)? php -r system('free -m'); total used free sharedbuffers cached Mem: 249

Re: [PHP] Determining system resources

2004-11-04 Thread Francisco M. Marzoa Alonso
Greetings Robin, As far as you cannot lock another processes in the system, so this will not give you the security that the resources will not change -and probably they'll do it- while you're trying to download that file. Best regards, Robin Getz wrote: I have been unable to find a php function

Re: [PHP] Determining system resources

2004-11-04 Thread Robin Getz
Francisco M. Marzoa Alonso [EMAIL PROTECTED] wrote: As far as you cannot lock another processes in the system, so this will not give you the security that the resources will not change -and probably they'll do it- while you're trying to download that file. Yes, I understand, but not to know even