Embedding
We provide embedding code for
PHP and
Java.
The embedding code utilizes the functionality of HelloCaptcha service. The functions of the embedding code can be divided into two parts:
- Low level functions that wrap the functions of HelloCaptcha service by doing the JSON over HTTP communication.
- High level functions that aid easy integration.
The high level functions provide standardized functionality. Using the high level functions the service can be embedded quickly, but it provides standard behaviour. If someone wants custom functions, the low level functions can be used.
We provide the following files containing software code to aid your work:
- HelloCaptcha.class.php - This file contains HelloCaptcha PHP class. This class is essential and sufficient for using HelloCaptcha service.
- sample-captcha.php - This is a small sample that demonstrates how to embed our CAPTCHAs into a web page.
- JSON.php - The older versions of PHP (before 5.2) do not have JSON support embedded. The JSON.php file contains the JSON encode and decode functions that are neccessary for HelloCaptcha.class.php. Just download this file and place it next to HelloCaptcha.class.php. It will load JSON.php if needed.
The library utilizes the functionality of HelloCaptcha service. The HelloCaptcha Java client library can be downloaded from the following link:
hellocaptcha-client-1.0-bin.tar.gz. The archive contains the HelloCaptcha client binary, the neccessary third party libraries and sample JSP files.