Note 13 for Web Scripting
Watch & Read:
| PHP Declaration | |
|---|---|
| <?php echo "Hello World"; ?> |
Code block can start anywhere |
| PHP Variable Declaration | |
$txt="Hello World"; |
All variables in PHP start with a |
| PHP Echo | |
echo "Hello World"; |
echo displays on the screen instead of document.write() for Javascript |
- PHP is a server-side scripting language like ASP but is open source (unlike ASP)
- PHP scripts are executed on the server (like ASP)
- PHP supports many databases but the database of choice is MySQL because it is open source.
- PHP has more functionality than ASP because of the open source developer base!
- PHP runs on Apache and IIS webservers while ASP runs only on IIS.
Homework:
Finish Projects
You should Read Chapters 14
Final Step:
Imagine that your mind is a DVD recorder / player and you can review this content anytime you want. I want you to close your eyes and quickly review in your mind everything we covered in class.
I also want you to review everything we covered before you go to bed because I want your mind to process this information while you sleep. You don’t need to spend much time on this review, 5 minutes will be enough!