PHP for the World Wide Web: Second Edition written by Larry Ullman
Chapter 1
Getting Started
Chapter 1 is a basic introduction to PHP and includes such ideas as posting a very small script to the server so that the server will print to the page all the information available about the PHP on that server. While taking PHP 101, I learned by using a similar, but shorter script, that the server I was using had version 4.2.1. The new server has 4.4.9 and I can move up to 5 if or when I want to do so.
Here is a link to a page which is reporting just what kind of PHP is on the server I now use, which is glowhost, and can be visited here. I am enjoying the cPanel which was non-existent on my last server, not to mention a whole lot of other things that were not available. The price is about the same and I have multiple domains residing in the same site. One is a new one I may use for publishing...well, not sure yet. The other, my son's business site, also resides there.
At the following link, you will find my test document which will print to the page the credentials of PHP on glowhost.
Hello, world!
This is really going backwards, but sometimes, to go forward, backward is a good place to start! I know this will help reinforce what I have learned in PHP 101 and help to fill in any gaps that may have need of being filled in. Or ideas that may have been misunderstood (or be a bit foggy!) can be cleared up.
The book suggests using 'print' to send data to the browser, but I am going to continue to
use 'echo' until I find I am wrong. Here is a link which debates the pros and cons for using 'print' or 'echo'.
Print or Echo?
I have read a few such sites and they all seem to say about the same thing.
The following was created by PHP and has no HTML formatting.
Hello, world!
The following was created by PHP and has been formatted.
Hello, world!
This will look the same as the others above, but the source code will be different because of adding an HTML comment.
Hello, world!

