Category Archive: PHP

Jul 20

Speed Up Your Website for Better Search Engine Ranking

speed up

For all those who are having websites or planning to have one, sincere advice is to make them get loaded as quickly as possible. The reason behind this is that, if the website takes long time to load there are chances that visitors will get frustrated and leave the website. This will impact on the …

Continue reading »

Mar 27

Hook System with PHP

I was recently coding a web-application base in PHP and it occurred to me that including a hooking system won’t be a bad idea. I like the way hooks are used in wordpress for almost every task. Implementing a hook system makes the application more flexible and modular, all with a small bit of code.

Mar 05

WordPress Plugin: true Google 404

true Google 404 is a free wordpress plugin that adds functionality of displaying a list of related links on your website when a reader encounters a 404 error. It transforms your standard “We can’t find that” to “Maybe one of these is what you are looking for” and displays a list of related links with some …

Continue reading »

Jan 20

PHP Template Engine Comparison

Today I will discuss a project on PHP template engines with you. I’ll do a little performance and resource usage test on different PHP templating platforms. This is not a test of overall performance. This is just a test for the properties of my personal interest. Template engines have many features, but usually only a small subset is used by most of the programmers. In this bench marking process, I’ll test …

Continue reading »

Jan 20

Checking PHP Exceptions’ speed

icon_smile

We sometimes use exceptions to manage the flow of our scripts. I guess the use of exceptions should cause a lack in performance. To verify this, I will do a small benchmark test to measure the performance difference in execution of a simple script configured to throw exceptions and once without them.So let’s begin First a not so useful script to find odd numbers …

Continue reading »

Aug 21

Export Mysql data to CSV with PHP

Want to export your Mysql data to a CSV(comma seperated value) file? In this tutorial learn how to export your data from Mysql into a CSV file. Fist off we start by creating the connection to the Mysql database: $host: this is the location for the Mysql server it can be a hostname or an …

Continue reading »

Aug 10

Create a Captcha with PHP

captch_generation_and_matching_STEPS

We’re going to learn how how CAPTCHA (CompletelyAutomated Public Turing test to tell Computers and Humans Apart) works and how it minimizes automatic sign-up of forms. We will also be creating a simple CAPTCHA script in PHP to illustrate this. Basically CAPTCHA works in the following manner: Create Random Value: Some random string is generated, random values are often hard to guess …

Continue reading »

Jun 17

Add OpenID login & signup on your Website

061711_1328_AddOpenIDlo2.jpg

Add OpenID support to your website and let your users log in using the most preferred way!     Think about the number of username and password combinations you have to remember on a daily basis – bank logins, social networking sites, Flickr, Twitter, Basecamp and so on. The more security-conscious of us will accept …

Continue reading »

Older posts «