Blog Archives

PHP Tutorial : Validate email address – simple way with filter_var() function

While browsing php.net without any scope I discovered a very cute & nice way to replace the usual regular expression email checking thing. That way is via filter_var() php function which does the things 10 times faster :

Tagged with: ,
Posted in Useful PHP

PHP Tutorial : Write text and convert into image

The base usage in my mind when I write this tutorial to convert text into image with php is to write email into images dinamically to avoid spammers collecting such addresses from the internet. To run such a script you

Click on title to read the entire article

Tagged with: , , , , ,
Posted in Useful PHP

PHP Tutorial : Get Browser Name & It’s Capabilities

To get browser name just use next thing :

And for all the features of browser user :

Tagged with: , , , , , , ,
Posted in Useful PHP

PHP Tutorial : Country list array

In my point of view, a very usefull and common thing we need when we build for example a membership site it’s country list array. I will do it within next function then will show how to use it :

Click on title to read the entire article

Tagged with: , , , , , , ,
Posted in Useful PHP

PHP Tutorial : List function

Beeing surprised that I didn’t write here about this “cute” php function called list(). I like it a lot, it’s like the extract() function in some way if you remember. The list() php function will assign variables in one shot

Click on title to read the entire article

Tagged with: , , , ,
Posted in Useful PHP