Prelim PPT 3 Flashcards
(32 cards)
A ________is simply a container i.e used to store both numeric and non-numeric information.
Variable
Variables in PHP starts with a ______ sign, followed by the name of the variable.
dollar($)
The variable name must begin with a _____ or the _________
Letter or the Undescore Character
A variable name should not contain _____
Space
It is used to collect value from a form(HTML script) sent with method=’get’. information
sent from a form with the method=’get’ is visible to everyone(it display on the browser URL bar).
$_GET[“FormElementName”]
It is used to collect value in a form with method=”post”. Information sent from a form is
invisible to others.(can check on address bar)
$_POST[“FormElementName”]
This can be used to collect data with both post and get method.
$_REQUEST[“FormElementName”]
It can be used to upload files from a client computer/system to a server.
$_FILES[“FormElementName”]
A _______ variable is used to store information about a single user, and are available to all pages within one application.
$_SESSION[“VariableName”]
A _______is used to identify a user. ______ is a small file that the server embedded on
user computer
$_COOKIE[“VariableName”]
$______ holds information about headers, paths, and script locations.
_SERVER[“ConstantName”]
PHP: Magic Constant
__Line__
__File__
__Function__
__Class__
__Method__
PHP_VERSION
PHP_INT_MAX
The curret line numer of the file
__LINE__
The full path and filename of the file
__FILE__
The function name
__FUNCTION__
The class name
__CLASS__
The class method name
__METHOD__
The PHP version
PHP_VERSION
The PHP integer value limit
PHP_INT_MAX
It is a statement i.e used to display the output. it can be used with parentheses ______ or without parentheses ______
echo
It is can pass multiple string separated as ( , ), doesnt return any value and faster then print.
Echo
It is a statement i.e used to display the output. it can be used with parentheses _______( ) or without parentheses _______.
Using _____ can doesn’t pass multiple argument, always return 1, and it is slower than echo
_____ method is unsecured method because it displays all information on address bar/
url.
GET method