Zend - The PHP Company




Code Gallery: kingtech


Format a File Size  

Type: code fragment
Added by: kingtech
Entered: 16/05/2001
Last modified: 09/12/2000
Rating: - (fewer than 3 votes)
Views: 5736
Function for calculating and formating a file size in bytes to human readble format


KTS Weather.com XML Grabber 2.0  

Type: application
Added by: kingtech
Entered: 17/12/2001
Last modified: 04/12/2003
Rating: **** (5 votes)
Views: 16594
Grabs the weather from weather.com and then stores the data into a MySQL Database while saving the forecast image locally. If the stored data in the DB is more than an Hour old it is grabbed again. Perfect for including on a page. Since weather.com does not have to be queried everytime the page is displayed. The data is also stored in an achive so you can brose stored weather data.


PHP/MySQL CodeRed hit logger and results display  

Type: application
Added by: kingtech
Entered: 14/09/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 6032
add .ida as a PHP type and place default.idi in your web root. When Code Red requests hit the infected servers hostname, IP, date are inserted into a MySQL DB. The next "index.php" file displays the hits with number of hits each host and a url to the infected server (So maybe you can contact them). You can add or change hosts to be seperated. Most of mine are from Bellsouth so that is why is seperate them.




Search