Mini Project 17




Projects

2 | 3 | 4 | 7 | 10 | 12 | 13 | 17 | 18 | 19 |
20 |Final



Instruction: In a Composer page answer the following questions (pages 1-24).

  1. List the three main rules to remember when working with XHTML.
      1)  All tags are written in lower case. 
      2)  All tags' attribues must be quoted. 
      3)  All tages must be closed.

  2. What language is the transition between HTML and XML? XHTML

  3. phpinfo() is a function

  4. List the three main differences of PHP compared to XHTML.
      1)  PHP scripts are saved with the .php extension.
      2)  PHP is wrapped with <?php and ?> to indicate which code is PHP.
      3)  PHP scripts must be run on a PHP enabled server.

  5. phpinfo() is an example of a built-in function that comes standard with PHP.

  6. PHP script needs to be run from a PHP enabled server in order to see what the output will look like.

  7. Why doesn't PHP behave differently on different computers? PHP is run from the server so it will  look the same no matter what kind of browser or computer type.

  8. What is the URL for viewing of a PHP file on the server? http://localhost

  9. Functions in PHP are followed by parenthesis in which arguments are passed to the function.

10. If a HTML tags uses quotation marks then you use the \ to escape them 

11. Using the \n character combination sends a command to the Web browser to start a new line.

12. To comment out a single like you would use the // or the #.

13. To comment a multiple lines you would use the character combination of the /* and the */.

14. You cannot use the HTML comment characters in PHP.

15. Text that is commented out in PHP will not be sent to the browser.

Instruction 2: Using Composer and your book's site (its scripts), perform the following tasks:

             1. Download and install Xampp. Watch this movie to see how to install Xampp.

             2. Copy the following code and save it as hello.php.

                 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                 <html xmlns="http://www.w3.org/1999/xhtml">
                 <head>
                 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
                 <title>Hello, World!</title>
                 </head>
                 <body>
                  The following was created by PHP:
                 <?php
                  /*
                  Filename: hello4.php
                  Book reference: Script 1.6
                  Created by: Larry Ullman
                  */
                  <!-- This is an HTML comment. -->
                  </body>
                  </html>

             3. Save the php file into the htdocs folder that is located in Xampp --- C:\apachefriends\xampp\htdocs\.

             4.  View the page at URL: "http://localhost/hello.php.

             5.  Press the Print Screen button and save the image.

Challenge.   Construct another php page and try adding different types of XHTML to it. What XHTML code can you send to the browser using the print() function?

php screen capture




Home Resume Page Hobbies Page InfoSec Page Projects Page Advanced Web Communications Page
Top of Page
   Page maintained by Beth Zuber