Home » PHP (page 4)


PHP class Example

In this example we are going to learn about classes in PHP, what they mean and how to use them. A computer with PHP 5.5 installed notepad++ 1. Objects in PHP A class is a collection of variables and functions working with these variables. To effectively use classes we need to familiarize ourselves with the term objects. Classes can be ...

Read More »

Getting Started With Laravel On Codeship

Laravel is one of, if not the most popular framework around for PHP today. Using GitHub as my source of truth, Laravel has 24,543 stars, 690 of which it has received this month alone. This is admittedly a simplistic, dare I say even rudimentary, measure of success or quality. But it does show both inertia and uptake. Given this inertia ...

Read More »

PHP Calendar Example

In this example we are going to build a web based dynamic calendar using PHP. A web based calendar can be used for events, upcoming product specials, memos, and anything else you can think of. The calendar is divided into two parts, the top part shows the current year and month, while the lower part shows each day of the month. ...

Read More »

PHP Authentication Example

In this example we are going to show you how to add an authentication system to your website. Authentication is an integral part of any web app that works with a login and registration system. Web apps like facebook.com, twitter.com and amazon.com use authentication to secure there users. Authentication is the process of determining whether someone or something is, in ...

Read More »

Creating a complete blog (CRUD) using MySQL and PHP

Blogs have become an essential component of  corporate websites. This is why every major and minor CMS now offer an integrated or independent blog as a default option. For many new developers, the functionality of the blogs remains a mystery. Blogs have become so tightly integrated with the overall structure of the CMS (especially WP, Joomla and Drupal) that it ...

Read More »

Php Cookie Example

Cookies are an important part of php and web development in general. Since http is a stateless protocol (This means that the server forgets each client after a connection), web developers need a way to store user preferences or allow their scripts to remember details about each client.  Cookies take on to solve this problem. (There are other solutions like ...

Read More »

PHP Pear Tutorial

If you are a PHP programmer, you will have probably encountered PEAR. PEAR stands for PHP Extension and Application Repository, a library of reusable PHP components, built under the same standard, that can be used in any project. PEAR was first released in 1999, and it has been for a long time the de facto official dependency manager for PHP. ...

Read More »

PHP HTML Table Example

In this example we shall show you how to create html tables with dynamic php. PHP is a server-side scripting language used by most web developers for creating dynamic and responsive web pages(A dynamic webpage is one whose content change automatically each time the page is viewed). Html is simply a language used to describe webpages. Html tables allow web ...

Read More »

PHP Curl Get/Post Example

If you have worked with Linux, you will have probably used cURL for downloading resources from the Internet. This powerful library can also be used in PHP scripts, and that is what we are going to see in this example. 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 SQL Injection Tutorial: How To Protect

SQL Injection is a vulnerability that allows an attacker to interact with the victim database to perform actions that are not allowed by the application. In other words: an attacker could read, write and/or delete data that is supposed to have access to. This is really scaring because, in the worst case, which is quite common, is incredibly easy to ...

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