PHP Notes

Created Tuesday 10 June 2025

Database

MySQL
(Postgres)
(Sqlite)

the CRUD concept


Flat File Storage

- In PHP, file reading and saving is (necessarily) more complex
- check out "fopen/fclose etc" vs "file_get_contents"
(the former, understand what a "file handle" is)
- Consider text data types, e.g.
- simple lines
- csv
- XML
- json
- yaml/toml

Logins

PHP - Sessions (Cookies)
Passwords: USE THE STANDARD. (password_hash)


Other Peoples Code (PHP)

"include" v "require" v "require_once"
Just Download/ AI generate it
(Git?)
PHP Composer
(for dependencies and libraries, package manager for php)



Backlinks: FSU Courses:LIS5367:Knowledgebase