PHP Tutorial

Brugbarts PHP Tutorial is aimed at Beginners as well as experienced web-developers.

The PHP Tutorial is a collection of chosen PHP related pages at Brugbart. Its recommended that you at least learn HTML before you start following these Tutorials.

PHP is a server-sided scripting language, used to create dynamic websites.

Note. PHP is not a replacement to HTML, as some beginners think.

When creating websites with PHP, you will still be using both HTML and PHP!.

Hosting

PHP is supported by most hosting companies, usually along with the free MySQL database.

If you are looking for a hosting solution which supports PHP, then we recommend that you check out some reviews, to make sure that you find a host, that can match your needs.

It is always best to know what your PHP hosting service provider can offer you, to make sure that your site would be stable, and always up and running.

Tutorials

Getting started with PHP

  1. An Introduction to PHP
  2. If Then, Else, ElseIf Statements
  3. Switch Statements
  4. Sessions
  5. While and For Loops
  6. Includes
  7. Functions
  8. Function Arguments
  9. Beginners OOP Tutorial

Practical Tutorials

Example Scripts and how-to's

  1. Banner or image Rotation
  2. Creating a StyleSheet Selector in PHP
  3. Dealing with Forms in PHP
  4. Creating a login in PHP

Articles

  1. Properly Redirecting old URLs to Friendly URLs Using PHP
  2. Using The HTTP If-Modified-Since header with PHP
  3. Function inside function in PHP
  4. How to disallow URL parameters

More Resources

  1. PHP Regular Expressions Tutorial
  1. PHP Manual - php.net