Hairy Mike's Tutorials: PHP

  1. Forms
    Forms are an interface for scripts. If you are not familiar with forms, you should review them before you start PHP.
  2. Introduction
  3. Prerequisites
  4. Server Requirements
  5. Obtaining PHP Code / The Copy Bug
  6. Basic Syntax
    Opening & closing PHP tags and comment tags
  7. Basic Syntax pt.2
    "Hello world" script and simicolons
  8. Quotes and Special Characters
    HEREDOC Syntax NOWDOC Syntax
  9. Variables
  10. Arrays
    1. Numeric Arrays
    2. Associative Arrays
    3. Working with Arrays 1
      count()
      foreach()
    4. Working with Arrays 2
      Sort an array
      Search an array
  11. Operators
  12. Forms
    1. Part 1: Interfacing forms & PHP
    2. Part 2: Convert kilometers to miles; your first tool.
    3. Part 3: Redirector for drop menus.
    4. Part 4: Post vs Get
    5. Forms examples
      1. Pythagoras Calculater
        Enter sides a and b of a right triangle and got the hypotenuse.
  13. Controling Flow:
    1. Conditional Statements
      1. If Statements
        1. Metric <-> English Standard Converter
      2. Else and Elseif
      3. Switch Statements
      4. Ternary Operater
      5. While Loops
    2. Regular Expressions
      1. Regular Expressions 1
        PCRE Modifiers
        Meta Characters
        Matching A Range Of Characters
      2. Regular Expressions 2
        Negate a character or range
        Repeat a substring
        Greediness
      3. Regular Expressions 3
        Subexpressions
        Boundaries
        Branches
    3. break()
      continue()
      die()
    4. Loops
  14. Functions
    1. Built in functions
      1. String Functions
      2. Math Functions
      3. Array Functions
      4. File Functions
      5. Image Functions
      6. Imagick Methods
        1. The Imagick Class Pt.1
        2. The Imagick Class Pt.2
        3. The Imagickpixel Class
        4. The Imagickdraw Class
        5. The Imagickpixeliterator
        6. Predefined Constants
      7. Flash and Ming Functions
      8. MySQL and MySQLi Functions
      9. mySQL Data Types and Reserved Words
      10. PHP Options & Info Functions
      11. TidyFunctions
      12. Miscellaneous Functions
      13. Index Of All Functions And Methods
    2. User Defined Functions pt.1
      1. User Defined Functions pt.1
      2. User Defined Functions pt.2
  15. Time and Date
    1. Time and Date pt.1
      time() and getdate()
    2. Time and Date pt.2
      date()
    3. Time and Date pt.3
      mktime(), strtotme() and checkdate()
  16. Cookies
    1. Pt.1
      setcookie()
      Session Cookies
      Deleting cookies
    2. Pt.2
  17. Sessions
    1. Introduction
    2. Sessions Without Cookies
    3. Login Form Demo
  18. Working with Files
    1. Files Pt.1 include() and require()
    2. Files Pt.2 Permisions
    3. Files Pt.3 Creating, Deleting, Copying and Renaming Files
    4. Some projects with remote files
      1. Files Pt.4 Source Code Viewer
      2. Files Pt.5 Reader Mode
      3. Files Pt.6 Link Extracter
    5. Opening And Closing A File
    6. Reading And Writing To A File
      Text counter and logger.
    7. File Uploads
      1. Pt. 1
        Notes on security. File upload form.
      2. Pt.2
        Error codes. Filtering user input. Moving temporary files.
      3. Pt.3
        Multi-Uploader
  19. Images
    1. gd_info()
    2. Creating an image
    3. Using Color & Transparency
    4. Points and Lines
    5. Gradient Effects
    6. Find Image Attributes
      Using getimagesize()
      Getting Cooridinates And Colors
    7. Rectangles
    8. Ellipses and Arcs
    9. Polygons
    10. Color Fills
    11. Image Fills
    12. Using Fonts
      1. Using Built In Fonts
      2. Using True Type Fonts
      3. Sizing and Aligning Fonts
      4. Image Based Counter/Logger
  20. User Defined Functions Revisited
    1. User Defined Functions Pt.3
      Make a function that generates images.
  21. Introduction to Objects
    1. Properties
    2. Methods
    3. Instantiating an Object
  22. Database
    1. SQLite
      1. Create a database, data types, create and destroy tables
      2. Enter and view data
      3. Entering data continued
      4. Sorting and Ordering Data
      5. Deleting and Updating Data
      6. SQLite Keywords
    2. mySQL
      1. Connecting and Disconnecting From a Database
      2. Connecting pt.2. Making a Login Form
      3. Show Server Info
      4. MySQL Data Types and Reserved Words
  23. Tidy
    Validate And Repair HTML
  24. Projects
    Larger and more complex examples.
    1. Thumbnailer and random image script
      Display a paginated list of thumbnails of images in a directory or select a random image from a directory.
  25. Resources
    1. w3schools HTML
    2. w3schools CSS
    3. w3schools PHP
    4. PHP.net manual
    5. List of all the functions and methods in the manual at PHP.net manual
    6. Askapache: Docs
    7. Askapache: htaccess
    8. PHPMyadmin.net
    9. Hans-Wolfgang Loidl's mirror of PHP Manual