Articles by Month
- July 2010 (2)
- June 2010 (3)
- May 2010 (5)
- February 2010 (4)
- September 2009 (1)
- July 2009 (2)
- June 2009 (2)
- April 2009 (8)
- January 2009 (3)
- November 2008 (6)
- June 2008 (1)
- May 2008 (5)
- April 2008 (1)
- March 2008 (3)
- February 2008 (5)
- January 2008 (10)
- June 2007 (1)
- May 2007 (1)
- April 2007 (2)
- October 2006 (2)
- September 2006 (4)
- August 2006 (2)
- February 2006 (1)
- December 2005 (1)
- September 2005 (4)
- August 2005 (5)
- July 2005 (2)
- June 2005 (2)
- May 2005 (5)
Links
-
Monthly Archives: April 2007
Playing with Wake-On-Lan (WOL)
Pre-req:+ Must have php5 with –enable-sockets What is a magic packet?It’s a udp packet sent through the broadcast address to all servers on the network (ie, all servers serviced by the broadcast address). It’s called magic, because the format of … Continue reading
Posted in Code
Leave a comment
Net_IPv4 Coolness
Available from the PEAR website, http://pear.php.net/package/Net_IPv4, the Net_IPv4 package is pretty cool. Check this out: <?phprequire_once(“IPv4.php”);$ip = $argv[1];$netmask = $argv[2]; $ip_calc = new Net_IPv4();$ip_calc->ip = $ip;$ip_calc->netmask = $netmask;$ip_calc->calculate();$ip_calc->min = $ip_calc->network;$ip_calc->max = $ip_calc->broadcast;$ip_calc->min_long = $ip_calc->ip2double($ip_calc->network);$ip_calc->max_long = $ip_calc->ip2double($ip_calc->broadcast);$ip_calc->gateway = long2ip($ip_calc->max_long-1); print_r($ip_calc);?> Share … Continue reading
Posted in Code
Leave a comment





















