Zend - The PHP Company




Code Gallery: jcostom


A whois interface for EVERYTHING.  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 08/12/1999
Rating: ***** (22 votes)
Views: 18994
It's a real pain to remember which whois server to use for which kinds of queries. The geektools.com whois proxy takes care of all that for you, interfacing with the correct whois server for your query. This version avoids all of the assorted nastiness that comes along with executing programs on your server using user input, as it directly connects to the geektools whois proxy.

The geektools.com guys have done a considerable amount of work on the proxy, which is available from their site. ISPs who plan on using this code are encouraged to run their own local copy of the geektools proxy, and save the load on whois.geektools.com.

Want to see it in action?



Graphical Anticounter  

Type: code fragment
Added by: jcostom
Entered: 24/07/2000
Last modified: 08/12/1999
Rating: **** (3 votes)
Views: 6321
A graphical companion to The Anticounter. More silliness.


Interface to poppassd  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 05/12/2000
Rating: ***** (6 votes)
Views: 6552
This class provides an interface to poppassd, a commonly used daemon to enable password changes via the network, particularly using the Eudora mail client. Take care to ensure the safety of your password data in transit! I recommend using this script only over SSL.


MySQL/MSSQL abstraction Layer  

Type: class
Added by: jcostom
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 11121
I needed a quick way to switch quickly between MySQL and MS SQL Server for applications, so I wrote two classes, that provide a modular, consistent API that can be used for either database. Changing out your DB is as easy as dropping in the proper DB_whatever.php file into the dir that DB.php lives in, then changing the $dbtype var before you require() DB.php


Stock quote retrieval  

Type: class
Added by: jcostom
Entered: 04/03/2000
Last modified: 08/12/1999
Rating: ***** (14 votes)
Views: 12425
This class will, given a symbol, retrieve various pieces of information from Yahoo!'s stock quotes. It uses Yahoo's nifty .csv download option. It also works for the various indices, so long as you use the proper Yahoo! symbol for the index you want info on.


The Anticounter  

Type: code fragment
Added by: jcostom
Entered: 24/07/2000
Last modified: 08/12/1999
Rating: *** (6 votes)
Views: 8335
Aren't we all tired of hit counters? How's about we take them out back and shoot them? Better still, let's give them a completely bogus counter. Sure, it's silly, but I'm a silly mood today.


UPS Shipping Calculation  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 04/12/2000
Rating: ***** (20 votes)
Views: 24571
This class interfaces with the UPS website to calculate shipping costs.




Search