Lecture 6 - ServerSideScripting I Flashcards
What does PHP stand for?
PHP: HyperText Preprocessor
The web server does what three things with php?
Interprets, processes and renders
What interprets, processes and renders php?
a web server
What language can handle complex data processing that allows for dynamic content?
php
Can PHP handle both new and permanently stored data?
Yes!
What does LAMP stand for?
Linux, Apache, MySQL, PHP
can the closing tag… ?>… be omitted on occasions?
Yes. Sometimes it is purposefully omitted.
What is the difference between echo and print?
They are mostly the same aside from the fact that echo has no return value and print returns a value of 1. Echo can take multiple parameters, but print can only take one.
What are three ways to comment in PHP?
//this is a comment /*This is a comment*/ #This is a comment
What does a php script consist of?
a series of commands and statements
What is each statement terminated with
A semicolon (;)
What do php statements do?
Call for functions and provide parameters
Can a function have more than one parameter?
yes! Each parameter is separated by a comma.
Name two built-in php functions
The include function and the require function
What is the difference between failure of an include file and a required file?
Include: In case of failure, a warning will be generated.
Require: In case of failure, the execution of the script will be terminated.