Hello, you've stumbled onto my little library of PHP utilities. Documentation is a bit sparse (ie. non-existent) at this point, but the scripts are not complex and very easy to understand. Download one of the following:
Software License Agreement
This is free software, you may use it as long as you understand that there is (1) no support (2) no warranty (3) no guarantee. This program works for me, hope it works for you too. Do whatever you want with this, but I would appreciate proper credits if you redistribute this in any way, shape, or form. Feel free to improve it and send me updates. Enjoy!Documents
INSTALL Change Log Package Contents
- bandwidth
This is a simple PHP Bandwidth monitor. It has been tested to work with Linux, and should work with anything that has a /proc/net/dev file that is in the same format. Here is a sample of what it looks like:eth0 RX: 15.48 TX: 0.54 eth1 RX: 1.18 TX: 15.42 eth0 RX: 17.52 TX: 0.72 eth1 RX: 1.56 TX: 17.46 eth0 RX: 16.36 TX: 0.59 eth1 RX: 1.30 TX: 16.36 eth0 RX: 14.56 TX: 0.60 eth1 RX: 1.31 TX: 14.51 eth0 RX: 24.42 TX: 0.83 eth1 RX: 1.79 TX: 24.42 eth0 RX: 11.92 TX: 0.55 eth1 RX: 1.34 TX: 12.00 eth0 RX: 18.45 TX: 0.72 eth1 RX: 2.46 TX: 19.51 eth0 RX: 14.68 TX: 0.72 eth1 RX: 1.68 TX: 14.77 eth0 RX: 19.32 TX: 0.66 eth1 RX: 1.55 TX: 19.40- dirsync
This is a little utility to replicate a directory. It copies all files from a master directory to a slave directory (newer files only) and removes all files from the slave directory if they are not in the master (you can turn this off). It's nothing fancy and only works on local directories. I work on my web pages on my laptop and use this tool to copy it to my webserver daily.Dirsync Master: C:\x Slave : C:\y Creating C:\y\1 Creating C:\y\2 Copying C:\x\foo- isalive
This is a simple PHP script to test the connection to a host:port to see if it is alive or not. It can optionally send notification each time a host dies or comes back. Here is a sample of the log:2001-03-17 12:25:11 Boxter is down 2001-03-17 12:25:16 Boxter is up- nicename
A little utility to make filenames a bit nicer looking by triming out extra spaces, replacing _ with spaces, etc. Here is an example:Filename: messy__filename fix me-now.zip Messy Filename Fix Me - Now.zip Filename: who___ever_named___this_is__wierd.tar.gz Who Ever Named This Is Wierd.tar.gz- phpi
Simple little interactive PHP thing for you to quickly test a PHP command or whatever. Note, commands cannot span more than one line :) Here is an example:PHP Interactive by Ying Zhang (ying @ zippydesign dot com) Type 'help' for help, 'quit' to exit. 1> $foo=123.52; 2> printf("%10.3f", $foo); 123.520 3> echo gethostbyaddr("192.168.0.4"); boxter.localdomain 4> quit- rpmupdates
This file will look at the RPM files in a directory, compare against what is installed (against an rpm -qa) and tells you which files in the directory are newer. Here is an example:Checking /mnt/max2/scratch/autoupdates * bash-1.14.7-24.6x.i386.rpm newer than bash-1.14.7-23.6x
| [ go back to my homepage] |
|