The php scripts that we wrote in class are
Walk through creating a back-end php comment poster.
First, consider a python command-line "summarize-file-and-update" programw which works like this :
$ python comments.py
1. First comment.
2. Second comment.
What is your next comment? This is another
$ python comments.py
1. First comment.
2. Second comment.
3. This is another.
The comments are stored in a file named "comments.txt", in any format you like. Can we do this? Good, let's.
Second, a php web page comment thing ... using exactly the same idea: read the file, loop over the comments, output a div tag for each, put up a form asking for another comment ... when you get one, write it to the file.
The big ideas :
Your mission : put users and comments into a sqlite database, using php ....
Things to think about
last modified | size | ||
display_php.txt | Thu Nov 21 2024 12:21 pm | 474B | |
handler_php.txt | Thu Nov 21 2024 12:21 pm | 556B |