Skip to content
academia.sh

Unit 03 of 03

Request and Response

Request data arriving through superglobals, form data received and validated, the limits of an uploaded file, and the difference between the two forms of including a file.

Published Updated

Lessons

  1. 01 Superglobals How request data reaches PHP through superglobals: a missing key heard through the warning channel, values that are always strings, and the client choosing the type of a value. 2 min read
  2. 02 Form Handling Validating strings that arrive from a form with filter_var: failure heard through the return value, converted to null, and a valid 0 confused with failure. 1 min read
  3. 03 File Uploads How a file upload reports trouble through return values and error codes: move_uploaded_file on a file that was not uploaded, exceeding a server limit, and a request emptied by exceeding post_max_size. 2 min read
  4. 04 Including Files Through which channel the inclusion of a missing file is heard with include, require and include_once, followed by a course wrap-up that gathers the measurements of fourteen lessons in one table. 1 min read

Start typing to search.

↑↓ ↵ Esc navigate · open · close