Home » PHP (page 5)


PHP Tutorial for Beginners – The Ultimate Guide

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. PHP is mainly focused on server-side scripting, so you can ...

Read More »

PHP Show/Display Errors Example

PHP gives the possibility to configure how and which errors are displayed; as it’s an interpreted language, it’s not as strict as compiled languages. In this example we will see how we can configure PHP for that. For this example, we will use: Ubuntu (14.04) as Operating System. Apache HTTP server (2.4.7). PHP (5.5.9). Tip You may skip environment configuration ...

Read More »

PHP Session Example

Sessions are an important part not only of PHP, but of every web programming language. They are useful to access information across any page of the application, but should choose with care the data we want to save in it. For this example, we will use: Ubuntu (14.04) as Operating System. Apache HTTP server (2.4.7). PHP (5.5.9). Tip You may ...

Read More »

PHP Dependency Injection Tutorial

Dependency Injection is a design pattern that should be followed in almost every software project, regardless of its size, and if the programming language with are working with allows us. Fortunately, PHP provides the tools to implement it. This is a tutorial of how to deal with Dependency Injection in PHP, looking at the advantages that Dependency Injection supposes, and ...

Read More »

Login Form in PHP Example

In this example we will see how to make a login mechanism in PHP. The login systems is one of the most liked targets of attackers, so we have to be extremely careful with every aspect of the login. For this tutorial, we will use: Ubuntu (14.04) as Operating System. Apache HTTP server (2.4.7). PHP (5.5.9). SQLite3, a lightweight and ...

Read More »

PHP SoapClient Example

In this example we will see an example of a SOAP client communicating with a server. SOAP is one of many web service protocol definition. A web service is a technology that uses a protocol (SOAP in this example) for exchanging data between applications over the network. If we are developing a client for consuming a web service, we have ...

Read More »

PHP Date Format Example

In this example, we shall show how to deal with dates in PHP. As dates can be represented in many different ways. It is important to find a way that helps to avoid possible unexpected errors that may arise. For this example, we will use: Ubuntu (14.04) as Operating System. Apache HTTP server (2.4.7). PHP (5.5.9). Tip You may skip ...

Read More »

PHP Mail Function Example

In this example, we will see how we can send emails with PHP. After seeing this example, you will be able to send emails programmatically, which is especially useful in scenarios like the following: Registration confirmation. Password recovery. Notification delivery. And any other scenario where a service needs to contact a user. PHP has a built-in function called mail that ...

Read More »

PHP Upload Script Example

In this example, we are going to see how to make file uploads with PHP, that is, how to upload a file from the client side, to the server side. The process itself is pretty simple, but several checks have to be done to ensure that the file upload is made safely, i.e., to neutralise any hypothetical malicious misuse; and ...

Read More »

PHP Form Validation Example

Data is an integral part of an application. There is a golden rule for developers. Never trust your user’s information. So, we need to always filter and validate the user entered before storing it in application’s database. In this article, we will learn how to perform basic validation of form in php. We will create a simple registration form which ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook