Next Steps
What you can do now
- Run PHP from the CLI and built-in server
- Use variables, strings, arrays, and functions
- Handle forms, includes, sessions, and simple PDO
- Install a package with Composer and catch exceptions
Practice ideas
Build a guestbook: a form posts a message, PDO stores it in SQLite, and a page lists entries with escaped output.
Common traps
- Printing raw user input into HTML
- Building SQL with string concatenation
- Forgetting
session_start - Mixing many concerns in one giant PHP file
Where to go next
- A framework such as Laravel or Symfony
- Password hashing with
password_hash - REST APIs and JSON responses
- PHPUnit for tests
- Front controller and routing patterns
Comments
One comment per signed-in account. Comments are saved with this page’s URL.