PHP Programming Part 1: Introduction to PHP Programming
- How does Eli describe PHP?
- Briefly compare and contrast scripted and compiled languages.
- Briefly explain the difference between client side and server side scripting.
- What popular website does Eli cite as an example of what you can do with PHP and MySQL? Why did Eli that that this particular site was a good example?
- What does Eli emphasize as the 'nice' thing about scripted languages such as PHP?
- What is notepad++? Why would Eli recommend notepad++?
- If you want to write and run PHP code, what do you need?
- How does Eli describe syntax?
PHP is a useful scripting language to create interactive webpages.
Compiled languages use software and when the code is executed, it creates and un-editable file. Scripted languages are uploaded through files to a server that delivers information to a user.
Server side scripting involves a server reading PHP and sending it back to the user in HTML. Client side scripting involves information being sent to the users computer.
Craigslist. It uses HTML as well as PHP and MySQL; it is very effective.
PHP allows you to pull information from the server.
A text editor that is simple to use for languages like PHP.
A text editor and a server that supports PHP.
How you spell commands.
PHP Programming Part 2: PHP Syntax and Errors
- In a Linux context, does capitalization matter?
- What are the basic attributes of PHP syntax?
- Discuss one of the PHP error handling techniques that Eli presents.
- What is the difference between printing text and printing HTML?
- What happens if you add a PHP script to a HTML page and you don’t change the file type to .php from .html?
- What are the three ways that you can make comments in PHP?
Yes.
"<?php" Opens the PHP file and closes with "?>". Anything that is to be printed needs to be surrounded with quotes and commands must end with a semi-colon.
The browser will print an error message and tell you what line the error is on.
The browser will read HTML and PHP will print out text.
The browser will only read the HTML, so the PHP code will not be displayed at all.
With // or # for single line and /* for multiple lines.