background preloader

PHP

Facebook Twitter

Xampp Tutorial: Change port from 80 to 8080.

Other

Xml. PDF. Upload. Check if JavaScript is enabled with PHP. PDO-DB. Code Sample: PHP Currency converter with caching RSS Feed ← ABrandao.com. Captcha. PHP Captcha Image Verification. This article is mostly based on my post on my business website Zipline Interactive, PHP Captcha Image Verification.

PHP Captcha Image Verification

For a demo refer to this link or contact me. This CAPTCHA is a PHP script that protects websites against spam bots by dynamically generating a random string of text that humans can read but current computer programs cannot. For example, humans can read the randomized text as the one shown below, but automatic spam systems ca not read the random image text. This CAPTCHA uses PHP, Sessions and PHP’s GD Library with PNG support. The term CAPTCHA (for Completely Automated Turing Test To Tell Computers and Humans Apart) was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas Hopper and John Langford of Carnegie Mellon University. To show your new Captcha Image in your form, simply call the ‘captcha.php’ file in your image tag as follow: When you process your form, you need to compare the $_POST captcha data with your Session string: < ? The Captcha Image Verification was empty! 10 Free CAPTCHA scripts and services for websites.

In the past days I received several requests from my readers to suggest some CAPTCHA scripts and services quickly to embed into a web page.

10 Free CAPTCHA scripts and services for websites

This post proposes a list of ten interesting scripts and services you can use to provide protection from spam bots and ensure that only humans perform certain actions. 1. reCAPTCHA. Using reCAPTCHA with PHP - reCAPTCHA. The reCAPTCHA PHP Library provides a simple way to place a CAPTCHA on your PHP website, helping you stop bots from abusing it.

Using reCAPTCHA with PHP - reCAPTCHA

The library wraps the reCAPTCHA API. To use reCAPTCHA with PHP, you can download reCAPTCHA PHP library. You will only need one file from there (recaptchalib.php). The other files are examples, readme and legal stuff -- they don't affect functionality. Quick Start After you've signed up for your API keys, below are basic instructions for installing reCAPTCHA on your site.

Client Side (How to make the CAPTCHA image show up) If you want to use the PHP library to display the reCAPTCHA widget, you'll need to insert this snippet of code inside the <form> element where the reCAPTCHA widget will be placed: require_once('recaptchalib.php'); $publickey = "your_public_key"; // you got this from the signup page echo recaptcha_get_html($publickey); With the code, your form might look something like this: Note that the value of the "action" attribute is "verify.php". <? That's it! Internationalisation (i18n) en PHP avec XML. Cet article a pour but de proposer une solution simple pour introduire plusieurs langues dans vos sites web, avec une interface administrateur. • Niveau : néophyte à intermédiaire/expert • Connaissances abordées : XHTML : les formulaires,

Internationalisation (i18n) en PHP avec XML

CodeIgniter - Open source PHP web application framework.

Log Files

Tutorial. PHP Forms. Thumbnail, Miniaturiser une image en php(thumbnail) - php thumbnail miniaturiser miniature thumbnail image php redimentionner resize imagecopyresampled proportionnellement redimention proportionnel php thumb - Script Codes-Sources tutoriaux tutoriel astuc. Download CodeIgniter. Référence des fonctions. Affecte le comportement de PHP » « Using SystemTap with PHP DTrace Static Probes Manuel PHP Edit Report a Bug Référence des fonctions ¶ Astuce Voir aussi Catégorie/Liste des extensions. add a note User Contributed Notes There are no user contributed notes for this page.

Référence des fonctions

PHP CSS Browser Selector. Update You can find a more feature rich version of the browser detector in my little PHP toolkit, called Kirby Rafael Lima's CSS Browser Selector in PHP CSS Browser Selector is a very small javascript with just one line php function which empower CSS selectors.

PHP CSS Browser Selector

It gives you the ability to write specific CSS code for each operating system and each browser. Quoted from Rafael's website Example The background of this page will change on different os/browsers: yellow Internet Explorer orange Internet Explorer 7 red Gecko Engine on Windows (Firefox, Mozilla, Camino) pink Gecko Engine on Linux (Firefox, Mozilla, Camino) gray Gecko Engine on Other OS (Firefox, Mozilla, Camino) green Opera blue Konqueror black Safari cyan.

PHP Code Optimization: Do's and Don'ts.