Re: VAT number validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31 Oct 2008, at 10:47, Koenraad Vanden Daele wrote:
Ther is a VAT number validation API.

http://isvat.appspot.com/

How to use this; integrate it in PHP to validate VAT-numbers without the
user experiencing anything?

Did you even have a go? Did you look at the PHP manual for clues as to how to make an HTTP request?

Lucky for you I've used this API before so I already had a snippet so I dug it out and knocked up an example: http://dev.stut.net/php/validatevat.php

Note that it's nowhere near production-quality code but it should give you a head start. Also note that this relies upon you having the allow_url_fopen configuration option enabled. If you don't then you could do this with curl or raw sockets. Again the manual is your friend.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux