note 71319 deleted from function.memory-get-usage by bobby

From: Date: Wed, 22 Nov 2006 21:41:16 +0000
Subject: note 71319 deleted from function.memory-get-usage by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119995@lists.php.net to get a copy of this message
Note Submitter: solar dot c at gmx dot net ---- e dot a dot schultz at gmail dot com: There has been a little bug in the code. The if-block has to be like this: <?php /* Code */ if ( substr(PHP_OS,0,3) == 'WIN') { $output = array(); exec( 'tasklist /FI "PID eq ' . getmypid() . '" /FO LIST', $output ); return preg_replace( '/[\D]/', '', $output[5] ) * 1024; } /* Code */ ?>

« previous php.notes (#119995) next »