contact

Loading enum info ...

Using ENUM for website Contact Info

If you have, like me, an ENUM number, you can use it for more then allow people to reach you over VoIP. Here is how I used it to generate a 'Contact Info' list for my websites.

Why?

You ever moved, changed email, changed telephone number? Well I did. And it took me hours to update all my webpages to reflect this change. But not anymore thanks to ENUM.
I put whatever contact info I want to share in the e164.org tree, and have a little script on every page where I put contact info. All you need to do is download a little php script, and call the function in your website. Let's see how to do it.

Download this script file and store it in your webspace.
This script contains a function. The function takes the number to lookup as argument.
The return value is a HTML string you can use in your document to present your contact info.

So to use it in a page, you can do:

< ?php
include('enum.php');
$contactinfo = enumlookup('your_enum_number');
echo $contactinfo;
?>

That's all you have to do.

For an examle take a look at the "contact" box on the left.



 Feedback on this page or article:

This article has no feedback yet

 Give feedback:

To give feedback on this article, click here
Copyright (c) 2006-2008 Michiel van Baak.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".
< back | print | text | Using ENUM for website Contact Info