What is the Difference Between Php Include and Php Require

While coding in Php, many times you will want to create separate Php files and them combine them inside one file to create a page, as it is with Php templating. These 2 commands “include” and “require” both allow you to do

Read More What is the Difference Between Php Include and Php Require

Creating a Separate Php File for Database Connection

Most of the Php websites have connections to a relational database like MySQL, and to have that connection you need to code a couple of lines and provide hostname, username, password and database name for a successful connection. But should you

Read More Creating a Separate Php File for Database Connection

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

Handling Forms with PHP – Php Basics for Beginners

In this post, I will briefly talk about handling forms with PHP, then create a very basic form for posting/displaying a user’s first and last names. When you are creating forms, you can either separate PHP and HTML code (more

Read More Handling Forms with PHP – Php Basics for Beginners

Insert Data into MySQL Database – Php Basics for Beginners

This will be a brief 101 post for inserting data into MySQL database using Php. I find it very easy and straight forward to insert data into MySQL database using Php, compared to inserting data into MS SQL using C#.

Read More Insert Data into MySQL Database – Php Basics for Beginners

Object Not Found! The requested URL was not found on this server. – phpMyAdmin – EasyPHP

I encountered this problem when I tried to launch phpMyAdmin on my EasyPHP installation for the first time following “Configuration” -> “PhpMyAdmin”.

When I clicked “PhpMyAdmin” it took me to “http://127.0.0.1:8080/home/mysql/” (Which may change depending on your installation) displaying

Read More Object Not Found! The requested URL was not found on this server. – phpMyAdmin – EasyPHP

Apache port (80) is already in use by another application ! – EasyPHP

I have been a .NET guy for a log time but I have started to play around with PHP since I coded my first WordPress plugin. I have used WAMP Server before and I wanted to try out EasyPHP this

Read More Apache port (80) is already in use by another application ! – EasyPHP