Fundamentals of PHP and HTML

Fundamentals of PHP and HTML

Module 1: Introduction to PHP and HTML

  • History of HTML
  • Limitations of static web pages
  • Creating dynamic pages with PHP
  • A first PHP web page
  • Life cycle and sessions
  • Difference to application programs
  • Overview of libraries

Module 2: Language fundamentals

  • Mixing HTML with PHP
  • Simple data types
  • Automatic type casting
  • Arrays and key value pairs
  • Scope and the global keyword
  • Loops and control structures
  • Functions
  • Include

Module 3: Object Oriented Programming

  • Classes and Objects
  • Inheritance
  • Polymorphism
  • Interfaces
  • Static members and static functions

Module 4: Handling Errors

  • How to handle errors
  • Try, Throw and Catch
  • Finally
  • Creating custom exception classes

Module 5: Input and Output

  • The echo statement
  • Formatting output
  • Reading and writing files
  • Serialising objects
  • Accessing online documents

Module 6: Processing Forms

  • HTML forms
  • Post and Get
  • Accessing the form data
  • Ensuring valid user input
  • Security issues

Module 7: Storing Data in Databases

  • Concepts of relational databases
  • The SQL language
  • Connecting to a database
  • Issuing queries
  • Creating, Reading, Updating and Deleting
  • Processing return data

Module 8: Site Security

  • Cookies
  • Sessions and their risk
  • Automatic timeouts
  • Storing passwords safely
  • SSL connections
  • Other methods of improving safety

Module 9: Date and Time

  • The current time
  • Formatting dates and times
  • Comparisons and time periods
  • Storing and retrieving times in databases

Module 10: Using XML

  • XML and web services
  • Structure of an XML document
  • Accessing the elements
  • Creating a response