Eli, the Computer Guy - Part 2


PHP Programming Part 2

PHP Syntax and Errors


  1. In a Linux context, does capitalization matter?

  2. Yes, it makes a difference.


  3. What are the basic attributes of PHP syntax?

  4. Basic attributes include: quotation marks around certain strings and semicolons at the end of a line to mark it as the end


  5. Discuss one of the PHP error handling techniques that Eli presents.

  6. It is important to always close things correctly, either by brackets or semicolons. If something is not closed right, PHP will issue an error and it may assume that the following line is incorrect when it is not.


  7. What is the difference between printing text and printing HTML?

  8. Printing HTML code will be accepted by Web browsers while PHP will only be seen in code.


  9. What happens if you add a PHP script to an HTML page and you do not change the file type to .php from .html?

  10. Web browsers will not be prepared to interpret the PHP code and may not open the page at all.