Author Archives: admin

5 Powerful Blogging Tips for Your Business Blog

December 30, 2012 6074 views 1 comments

If you have a blog for your online business, many congratulations ! If used wisely, blogs are one of the best tools to drive traffic and increase sales. Unfortunately, many business bloggers are blogging ineffectively.Blogging is best way to drive traffic and increase sales. Why do we need to create a blog for our business? [...]

HTTP authentication with PHP

December 30, 2012 2078 views 1 comments

It is possible to use the header() function to send an “Authentication Required” message to the client browser causing it to pop up a Username/Password input window. Once the user has filled in a username and a password, the URL containing the PHP script will be called again with the predefined variables PHP_AUTH_USER, PHP_AUTH_PW, and [...]

PHP Image and Text Watermark

December 30, 2012 39001 views 4 comments

I received many tutorial requests from clients that asked how to generate watermark image using PHP. In this post, I coded two functions such as watermark_text() and watermark_image() to generate text and images watermarks on images. Integrate this to your web project upload image system and produce copyright photos. Watermark with Text – watermark_text() Text [...]

Optimizing CSS. Five simple steps !

December 30, 2012 1389 views 0 comments

In the spirit of the optimization wave this post is about CSS optimization. There are some simple rules that you can apply. I’m pretty sure most of us have already been familiar with that list, but you never know. 1. Minify As the JavaScript the CSS also can be minified. This only strips every character [...]

Base64 Encoding for Images in PHP

December 30, 2012 7571 views 0 comments

Base64 is an encoding format that represent binary data. Google new feature instant previews are in text format, here Google requesting images(screen shots) are in string format to reduce server load time. In this post I will show you how to make images to strings with PHP. PHP images to strings PHP terminology there is [...]

5 tips and tools to develop php applications fast

December 30, 2012 3536 views 1 comments

When web applications like basecamp started appearing, a lot of attention started turning to Ruby on Rails. Suddenly small groups of technically driven people could release powerful applications in a month or two. With this awareness, the usability standards for web applications increased and so did the technical challenges for web developers and designers. This [...]

7 habits of highly effective freelance programmers

December 30, 2012 1677 views 2 comments

I have developed these based on my freelancing experience. Though I have discontinued freelancing, but would like to share my practices with you. These are basic practices and have been developed over time with experience (good and bad). Please feel free to leave your experiences and comment on this article. 1. Communicate with your clients [...]

5 reasons ever developer should freelance

December 30, 2012 1493 views 0 comments

The answer is very simple… added cash!!! But that was not the reason that I was referring to. Though earning cash is important and I don’t discount that fact. In addition to earning cash, a developer should free lance because freelancing provides you with many challenges that your job would not. 1. More exposure In [...]

Server Side Form Validation using Regular Expressions

December 30, 2012 10472 views 1 comments

validation.php Contains PHP code. eregi — Case insensitive regular expression match. <?php if($_POST) { $name = $_POST['name']; $email = $_POST['email']; $username = $_POST['username']; $password = $_POST['password']; $gender = $_POST['gender']; // Full Name if (eregi(‘^[A-Za-z0-9 ]{3,20}$’,$name)) { $valid_name=$name; } else { $error_name=’Enter valid Name.’; } // Email if (eregi(‘^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$’, $email)) { $valid_email=$email; } else { $error_email=’Enter [...]

Prepared Statements in PHP and MySQLi

December 30, 2012 3903 views 2 comments

This article is intended for readers who have experience using PHP and MySQL. You should also have a general understanding of databases and programming (both procedural and object-oriented) as well as how to use PHP to execute a simple query to MySQL. I will not cover how to install PHP or MySQL, however at the [...]