Either phonebook.php or phonebook2.php should be placed in the Elastix web
directory.

This might be /var/www/html or something else depending on Elastix version
and environment.

It looks like maybe Elastix and FreePBX support a PostgreSQL backend, but
neither of these scripts probably will.

phonebook2.php needs certain Elastix and/or FreePBX files to run, provided
the files are there, it stands a better chance of working with new versions
of Elastix than phonebook.php

phonebook.php has borrowed most the applicable code phonebook2.php normally
references externally, and so it's probably least likely to break if
the environment is dramatically different.  Phonebook.php is probably the
best starting point for modification to suit your needs should neither script
suffice in their current form.

- Chris / Ethertubes.com
