PHP is a server-side language hankering to do database and file management at the server?
Unfortunately this can not be done with a handkerchief alone, as you will also need a database like MySql.
What else is needed? A framework to act as a web server, and for our purposes on this tutorial, on a Mac laptop, we are going to use MAMP.
So we will first show you the MAMP environment for PHP and MySql where we are talking about URLs like http://localhost:8888/ ( or http://127.0.0.1:8888/ ).
Then we will show you a MySql database and table that we will access later via PHP.
Then we will show you two simple PHP scripts to ask for requirements from the MySql database, and one to report on the results of running that SQL query on that MySql database.
Grasp these concepts and a lot of functionality opens up. Imagine what you could do with Ajax techniques.
Enjoy the tutorial.
A great book for this subject is
Professional PHP Programming by Jesus Castagnetto, Harish Rawat, Sascha Schumann, Chris Scollo, Deepak Veliath
Link to downloadable source code of PHP above is ourmysql_test.php and ourmysqltest.php which you need to rename in order to try.
Here is a lifesaver of a link, perhaps.
If this was interesting you may be interested in this too.



Naming the things in a bathroom is a smarter vocabulary exercise than it first looks, because every learner already knows the room, so the words attach to objects they can see and touch instead of floating on a flashcard. Asking how many things can you name turns it into a game rather than a test, and the counting itself becomes the motivation: one more word than last time is a visible win. I like the way this kind of lesson uses a photograph as the prompt, since a picture gives every student the same starting point regardless of level, and the stronger students can move on to describing what each thing is for while beginners are still collecting nouns. The bathroom is a good choice of room too, because it is full of everyday words that textbooks often skip, the small objects people actually say out loud every morning. A daily habit of naming five new things around the house would build a working vocabulary faster than memorising lists, and this post is a good template for it.