I Am Justyn

I fix things

Aug 16, 2010 - 1 minute read - Scripts

du.php - PHP Disk Usage script

I’m starting to copy my scripts from https://justynshull.com/oldsite/phpscripts.html but figured I’d start with this one so I can get the syntax hilighting/formatting down with wordpress.

  // $a = shell_exec('df -h');
  //echo getenv('DOCUMENT_ROOT');
  echo shell_exec('pwd');
  $a = shell_exec('du -hx *');
  //$a = shell_exec('ls -l');
  echo '<h2>Disk space</h2>h2>< pre>';
  echo $a;
  echo '< /pre>';