- 1. PHP
- 2. PHP
- 2.1. About - History
- 2.2. HTTP: A few words about how the web works
- 2.3. Hello world
- 2.4. Hello world, no HTML
- 2.5. HTML inside PHP
- 2.6. phpinfo
- 2.7. Comments
- 2.8. Errors
- 2.9. print vs echo
- 2.10. Numbers
- 2.11. Numerical Operations
- 2.12. Strings - concatenation
- 2.13. Variables
- 2.14. Variable interpolation (or variable expansion)
- 2.15. String functions
- 2.16. addslashes
- 2.17. stripslashes
- 2.18. trim - remove white spaces from both ends of a string
- 3. PHP - Arrays
- 3.1. Array
- 3.2. Associative Array
- 3.3. Array in key/value pairs
- 3.4. Array in key/value pairs using each
- 3.5. sort
- 3.6. asort
- 3.7. ksort
- 3.8. Special Arrays
- 3.9. The _SERVER variable
- 3.10. A simple form
- 3.11. A simple calculator
- 3.12. If statement
- 3.13. for loop
- 3.14. Exercise: improve the calculator
- 3.15. Exercise: keep values in the fields
- 4. PHP - Files
- 4.1. Read from file
- 4.2. Fail to open file
- 4.3. Checking if open file succeded
- 4.4. Checking if open file succeded - suppress warnigs
- 4.5. Read CSV file
- 4.6. Open file to read or write
- 4.7. Write to a file
- 4.8. Fail to write to a file
- 4.9. Registration form - save to fill
- 4.10. copy - Copy a file
- 4.11. unlink - Delete a file
- 4.12. chmod
- 4.13. chown - Change owner
- 4.14. Get current working directory - getcwd
- 4.15. Show source
- 5. PHP - PCRE - Perl compatible Regular Expressions
- 5.1. preg_match - PHP Regex Match
- 6. PHP - other
- 6.1. Send mail
- 6.2. Phonebook
- 6.3. Exercise: enlarge the phonebook
- 6.4. Exercise: enable editing the entries
- 6.5. Exercise: complex
- 6.6. Parse XML file
- 6.7. Functions
- 6.8. Resources
- 7. PHP - mysql
- 7.1. MySQL - connect
- 7.2. Fetch data from MySQL server
- 7.3. INSERT data into MySQL
- 8. Testing PHP
- 8.1. Starting the server
- 8.2. Almost manually testing add()
- 8.3. Print expected values as well
- 8.4. Compare actual with expected values and print only pass/fail
- 8.5. Refactor to get assertTrue
- 8.6. Introduction to the PHP SimpleTest framework
- 8.7. assertTrue in SimpleTest
- 8.8. SimpleTest showing success
- 8.9. assertEqual showing the actual values
- 8.10. SimpleTest showing description of error
- 8.11. PHP SimpleTest
- 8.12. Testing PHP on the command line
- 8.13. Testing PHP Application
- 8.14. Check web page content
- 8.15. Check web page title
- 8.16. Check web page content a failure
- 8.17. Checking forms
- 8.18. Submit form
- 8.19. Check for text that should not be there.
- 9. Testing PHP with PHPUnit
- 9.1. Introduction to PHPUnit
- 9.2. assertTrue with PHPUnit
- 9.3. PHPunit showing success
- 9.4. PHPUnit with assertEqual
- 9.5. assetEqual with message
- 9.6. Installing PHP Unit