I know this post is a bit old. But it's been the closest I've gotten to this phonebook thing. I placed the file inside the pbx but when i navigate to the pbx.domain.com/ylab.php it shows a part of the script inside of it instead of the output.
Clearly just taking part of the script i got from the GETHUB instead of supplying me with the output requested.
Any ideas?