Experiment: click on the following hyperlink:
Reload the webpage to see changes to the webpage.
Explanation:
http://holland.mathcs.emory.edu/~cs377001/intro/random-text.php link,
the browser sends the HTTP request message to holland.mathcs.emory.edu requesting the webpage "random-text.php" from user cs377001:
Note:
I.e.: the PHP program "creates" a webpage when the PHP program is executed !!!!
How to do the demo:
php /home/cs377001/public_html/intro/random-text.php
Compare the output of the command with the source of the webpage: they are the same !!!
(Run a few times to get the same random text....)
(your shopping basket is different each time you click the check out page )
We will study PHP (PHP Hypertext Preprocessor)
(I can teach you PHP programming in 1 lecture !!!!!!)
The focus is database access --- but we need to learn a new programming language so that we can use this server-side scripting language to access MySQL
There is no way we can discuss all features of PHP in such a short time !!!
ssh -X holland.mathcs.emory.edu
cd ~/public_html
http://holland.mathcs.emory.edu/~yourID/filename