Tagged: PHP

PHP web development – How PHP Benefits

PHP web development – How PHP Benefits

Before building website you need to know which language you are going to use in a professional looking website. PHP is one of the best and easy to use programming language as it can be run to any operating system. PHP is free language so that is the huge advantage...

42 Tips for optimizing your php code

42 Tips for optimizing your php code

1. If a method can be static, declare it static. Speed improvement is by a factor of 4. 2. echo is faster than print. 3. Use echo’s multiple parameters instead of string concatenation. 4. Set the maxvalue for your for-loops before and not in the loop. 5. Unset your variables...

Creating Custom Error Messages in Apache

Creating Custom Error Messages in Apache

Introduction The .htaccess file is a file found in Apache servers that allows you to manipulate the behaviour of the server. A very common use is to create custom error messages for server errors. Examples of such errors are “404 Not Found” (say when you click on a broken link),...

How To Prevent Your Blog From Leaking PageRank

How To Prevent Your Blog From Leaking PageRank

In simple terms, PageRank leakage/dilution is when outbound links siphon off PageRank which would normally be distributed to internal pages, therefore reducing your sites overall PageRank. How much of an effect it has on your site will depend on the strength of your internal linking and how many outbound links...

Forcing www (or no-www) in domain name

Forcing www (or no-www) in domain name

One of the first things I do when I begin implementing a site is to force the www (or no-www) in the domain name. Why would I want to do this? For search engine optimization of course. For example, naseerahmad.com redirects to www.naseerahmad.com. What this means for Google is that...

Unicode Data with PHP 5 and MySQL 4.1

Unicode Data with PHP 5 and MySQL 4.1

Unicode background In the ever expanding world of e-commerce and information technology, one thing above all is coming to the forefront of internet design – globalization. For many large companies, web documents are translated into many different languages. However, the computer technologies we use for storing data weren’t originally designed...