For the following four PHP labs, you'll see a series of activities and questions. You should answer all the questions indicated with a bullet
In the classic book The C Programming Language, Brian Kernighan and Dennis Ritchie introduced their readers to programming in C by creating a program that printed the words "Hello, world" on the screen. Since that time, most writers of texts and tutorials on programming systems have begun their exposition with some kind of "Hello, world" program.
Use Notepad to create a file with the following contents:
<HTML> <HEAD> <TITLE>Hello world</TITLE> </HEAD> <BODY> <?php print("Hello, world. <BR>"); print("PHP is neato. <BR>"); print("4+8 <BR>"); print(4+8); print("<BR>"); $total = 4+8; print("$total <BR>"); ?> </BODY> </HTML>
Save the file as S:/Students/cs107/yourusername/hello.php
Use a web browser to view your file. If you have saved hello.php in the proper place, the URL http://prism.mathcs.carleton.edu/cs107/yourusername/hello.php should work.
Compare the web browser view line by line with the PHP source code. Answer the following questions:
In your browser, select the "View Source" menu item. Answer the following questions: