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...

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...

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...

Develop PHP Application in VS.Php for Visual Studio

Develop PHP Application in VS.Php for Visual Studio

You must be ammazed at strange kind of title for this blog post but yeah, this is 101% true and the guys at jcxsoftware , who are committed to provide .NET develpers a platform to develop better web applications using the state of art PHP...

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...

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...

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...

How to – Using PHP To Backup MySQL Database

How to – Using PHP To Backup MySQL Database

There are at least three ways to backup your MySQL Database : Execute a database backup query from PHP file. Run mysqldump using system() function. Use phpMyAdmin to do the backup. Execute a database backup query from PHP file Below is an example of using...