Author Archive

du.php – PHP Disk Usage script

Monday, August 16th, 2010

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.

1
2
3
4
5
6
7
8
9
10
11
12
 <?php
 // $a = shell_exec('df -h');
//echo getenv('DOCUMENT_ROOT');
chdir(getenv('DOCUMENT_ROOT'));
chdir('..');
echo shell_exec('pwd');
$a = shell_exec('du -hx *');
//$a = shell_exec('ls -l');
echo '<h2>Disk space</h2>< pre>';
echo $a;
echo '< /pre>';
 ?>

Switch to VPS and wordpress

Monday, August 16th, 2010

I decided to switch my website from basic html/php to WordPress, and at the same time moved it over to my VPS.   It was being hosted on dreamhost before.

I still need to install/configure subversion, and move some of my old stuff over to wordpress.   There isn’t much to move, so it won’t be hard.    The old version of the site can be found here:

http://justynshull.com/oldsite/