Here's a simple MySQL-based company directory for the Cisco 7960

Here's what you need to do to get it working:

1) Make sure you have Apache, MySQL, and PHP up and running 

2) Edit companyDirectory.php and change the "10.0.0.3" on line 11 to 
   match the URL of your Apache server.  Also change line 12 to match your
   configuration.  (In my case, I always dial 81 plus a 10 digit number for
   outbound calls.  You may have to edit the code it make it work right in
   your particular setup.)

3) Edit searchDirectory.xml and change all occurances of "10.0.0.3" to match
   the URL of your Apache server

4) Edit services.xml and change all occurances of "10.0.0.3" to match the URL
   of your Apache server

5) Edit the Cisco 7960 .cnf file on your tftp server to point the services to
   http://<your server>/services.xml  For example, mine looks like this:

   services_url: "http://10.0.0.3/services.xml"

6) Edit DBConnect.inc and change the following:
   __HOST__ to the name or IP address of your MySQL server
   __USERNAME__ to your MySQL username
   __PASSWORD__ to your MySQL password
   __DATABASE__ to the MySQL database name
   __EMAIL_ADDRESS__ to your email address

7) Setup the MySQL database by running the following from the MySQL
   command line interface.

   CREATE TABLE user (
     UserID int(11) unsigned NOT NULL auto_increment,
     FirstName varchar(20) default NULL,
     LastName varchar(50) default NULL,
     HomePhoneNumber varchar(20) default NULL,
     WorkPhoneNumber varchar(20) default NULL,
     MobilePhoneNumber varchar(20) default NULL,
     PRIMARY KEY  (UserID),
   ); 

   (I'm assuming you've already set up a MySQL database and user, and
   are using that database when you create the table.)

8) Populate the MySQL user table with data.  (I'll assume you know how to do
   this.  If not, learn MySQL so that you can use it!)

9) Reboot your phone, press the services key, and you should see a nice little
   menu.  Try it out! 

Disclaimer:  This code comes with no guarantee whatsoever.  It may or may not
work... it might even cause you problems.  It's worked for me...

Jared Smith
