Reading/Writing files
-
Rem. Accessing files (on the client machine) in JavaScript is tricky (sandbox limitation for security issues).
-
Accessing files (on the server) in PHP is easy.
-
-
No security issue: only the server can access to its files
-
\(\Rightarrow\) You can store/share any information in a permanent way through different users
-
Examples: Reading and drawing all images within directory, counting and storing the number of times a page has been viewed.
21/37