Difference Between Relative, Absolute and Fixed Positioning

If you are a web developer/webmaster, it is imperative that you understand positioning and know how relative, absolute and fixed positioning works. In this post, I will try to briefly explain how they work so that you can see the

Read More Difference Between Relative, Absolute and Fixed Positioning

Difference Between Hashing and Encryption

When it comes to security, you will hear a lot of people talking about things like hashing and encryption. But what are they? What are the differences? What are the practical approaches when it comes to choose which one to use? In

Read More Difference Between Hashing and Encryption

PHP Prepared Statements – Part 2

I have already written a post titled “Php Prepared Statements” but it was very brief and did not explain the workings of Prepared Statements, neither did it mention the PROS of using Prepared Statements. In this post, I want to provide

Read More PHP Prepared Statements – Part 2

PHP Shorthand IF Statements (Ternary Operator)

You know If statements. They are almost all the same in most of the programming languages. In PHP, their structure is also just the way you would expect them to be 🙂 Below is a very simple if statement in

Read More PHP Shorthand IF Statements (Ternary Operator)

Using Transactions in PHP

Transactions… They are an essential part of programming if you are performing dependent database operations. By dependent database operations, I mean something like this scenario: A) Add a record to table b B) Add a log for this addition operation

Read More Using Transactions in PHP

Maximum Hash Cost Your Server Can Efford for PHP password_hash Method with Blowfish Algorithm

Hashing…Why do we need it? We need it to stop bad guys from stealing the passwords of our users in case they are able to steal our database records. PHP 5.5 has a native password hashing API that you can use for

Read More Maximum Hash Cost Your Server Can Efford for PHP password_hash Method with Blowfish Algorithm

Php Script to Apply Regex Replace on MySQL Records

Use this script at your own risk. Never run scripts on your databases before backing them up! Recently I needed to apply REGEX replacement on my posts in this blog. I wanted to remove dead links from my posts to improve

Read More Php Script to Apply Regex Replace on MySQL Records

Creating Functions in Php – Php Basics for Beginners

In this post, I will briefly talk about creating functions in PHP. Why Use Functions When you are programming you will be using some pieces of the code frequently. Placing these pieces of code into a function will save you

Read More Creating Functions in Php – Php Basics for Beginners

Difference Between Post and Get Methods

In this post, I will briefly talk about the difference between post and get methods for handling form data. While handling web forms, whether you use PHP, ASP.NET, RUBY etc. there are 2 main methods to get the data on

Read More Difference Between Post and Get Methods

Displaying Errors and Error Reporting in PHP

Hi, in this post I will be talking about displaying errors and error reporting in PHP. An issue you may encounter when it comes to PHP debugging is not being able to see the errors that occur. No, you will

Read More Displaying Errors and Error Reporting in PHP