If this blog helped you in any way, please donate a dollar here

Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Friday, August 6, 2010

Captcha in PHP

Writing a custom captcha for your website is a fairly easy task with the PHP GD Library.

The GD Library is a graphics library that enables to draw (and generate) graphics. This output can be done on any of the standard image file formats.

In my example I choose to create a PNG file that will be displayed in my registration page. So the first piece of code I need is somthing like this:

Friday, July 9, 2010

Learning about Web Technology

I am a C fan, hence I love PHP. The world of ASP.NET seems to be very attractive due to the obvious reasons of GUI designer and Rapid Application Development. Again, JSP has got a similar attraction.

However, due to poor support of ASP.NET on Linux, (or perhaps my lack of knowledge in this field!) I am still unable to say hello world on MonoDevelop. JSP appeared pretty complicated at first due to the oh-so-many XML files and odd looking folders. So PHP seemed natural.

Well I have to admit that I like things hand on, so the toolkit based approach in Netbeans, Eclipse and Mono seemed a little too heavy for me. Another reason may be these tools are so sluggish! On my 1-Gig P4 machine, it takes ages for Eclipse to load.