PHP

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!.

General

  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

Strings:

  1. Convert to Lowercase
  2. Replace First Occurrence of String in String
  3. Using the Heredoc Syntax
  4. Remove spaces from the beginning and end
  5. Count number of words
  6. Count capital letters

Arrays:

  1. Determine Length of Array
  2. Find Elements or Keys in Array
  3. How to Loop Through an Array
  4. Convert string to array

File Handling

  1. Create and Write to Files
  2. Read Content of Files
  3. Deleting Files and Directories
  4. Copying files
  5. Renaming Files

HTTP Requests

  1. GET Requests
  2. POST Requests
  3. Request Headers
  4. Proxy Servers
  5. Disable Auto-following of Redirects
  6. Handling Cookies

cURL:

  1. GET Requests
  2. POST Requests
  3. Request Headers

Practical Tutorials

  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
  2. Using The HTTP If-Modified-Since header
  3. Function inside function
  4. How to disallow URL parameters

More Resources

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