Lesson 3 Flashcards

(94 cards)

1
Q

is a program which processes the network requests of the users and serves them with files that create web pages. This exchange takes place using Hypertext Transfer Protocol (HTTP). Basically, web servers

A

Web Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

are computers used to store HTTP files which makes a website and when a client requests a certain website, it delivers the requested website to the client.

A

Web Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

There are many web servers available in the market both free and paid.

A

Web Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is a server that is managed from its own command line and is hosted on the user’s own personal computer.

A

Local Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

are stored on a local network to the reference machine itself

A

Local Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

on a local network to the reference machine itself. Examples of Local Web Server:

A

XAMPP (Cross Platform, Apache, MySQL, Perl, and PHP)
WAMP (Windows, Apache, MySQL, and PHP)
LAMP (Linux, Apache, MySQL, and PHP)
Laragon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

are hosted in spaces of a global network, managed by the hosting companies. It is an infrastructure that stores and processes information and applications belonging to a hosting company, with multiple servers and locations.

A

Cloud Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

PHP is an acronym for “____________________”

A

PHP: Hypertext Preprocessor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

is a widely-used, open-source scripting language

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

its scripts are executed on the server

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

it is free to download and use

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

is an amazing and popular language!

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)!

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

It is deep enough to run large social networks!

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

It is also easy enough to be a beginner’s first server-side language!

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

is compatible with almost all servers used today (Apache, IIS, etc.)

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

supports a wide range of databases

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

is free. Download it from the official PHP resource: www.php.net

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

is easy to learn and runs efficiently on the server side

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

There have been multiple versions of PHP released since its inception.

A

PHP Versions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

There have been various major versions, including:

A

PHP 1.0
PHP 2.0
PHP 3.0
PHP 4.0
PHP 5.0
PHP 7.0
PHP 8.0 and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

its files can contain text, HTML, CSS, JavaScript, and PHP code

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

code is executed on the server, and the result is returned to the browser as plain HTML

A

PHP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
PHP files have extension "______”
.php
26
can generate dynamic page content
PHP
27
can create, open, read, write, delete, and close files on the server
PHP
28
can collect form data
PHP
29
can send and receive cookies
PHP
30
can add, delete, modify data in your database
PHP
31
can be used to control user-access
PHP
32
can encrypt data
PHP
33
With _____ you are not limited to output HTML. You can output images or PDF files. You can also output any text, such as XHTML and XML.
PHP
34
Its script can be placed anywhere in the document.
PHP
35
A PHP script starts with _______
36
The default file extension for PHP files is "______".
.php
37
normally contains HTML tags, and some PHP scripting code.
PHP file
38
it uses a built in PHP function to output the text "Hello World!"
echo
39
PHP keywords classes, functions, and user-defined are ______________
not case sensitive
40
With PHP, there are two basic ways to get output:_____ and ____
echo and print
41
_____ and ____ are more or less the same. They are both used to output data to the screen.
echo and print
42
has no return value
echo
43
has a return value of 1 so it can be used in expressions.
print
44
can take multiple parameters (although such usage is rare)
echo
45
can take one argument.
print
46
is marginally faster than print.
echo
47
can be used with or without parentheses
print
48
is a line that is not executed as a part of the program. Its only purpose is to be read by someone who is looking at the code.
comment
49
let others understand your code
comments
50
remind yourself of what you did - Most programmers have experienced coming back to their own work a year or two later and having to re-figure out what they did.
comments
51
can remind you of what you were thinking when you wrote the code
comments
52
leave out some parts of your code
comments
53
PHP supports several ways of commenting like:
// This is a single-line comment # This is also a single-line comment /* This is a multi-line comment */
54
These are **"containers"** for storing information.
Variables
55
can have a short name (like $x and $y) or a more descriptive name ($age, $carname, $total_volume).
Variable
56
starts with the $ sign, followed by the name of the variable. Rules for PHP variables:
Variable
57
can store data of different types, and different data types can do different things.
Variable
58
What are the following data types that PHP supports?
String Integer Float (floating point numbers - also called double) Boolean Array Object NULL Resource
59
are like variables, except that once they are defined they cannot be changed or undefined.
Constants
60
is an identifier (name) for a simple value. The value cannot be changed during the script.
Constants
61
A valid ______ name starts with a letter or underscore (no $ sign before the constant name).
Constant
62
To create a constant, use the ______ function or use the const keyword.
define()
63
is a sequence of characters, like "Hello world!".
string
64
in PHP are surrounded by either double quotation marks, or single quotation marks.
string
65
perform action on special characters.
Double Quoted String
66
does not perform such actions, it returns the string like it was written, with the variable name.
Single Quoted String
67
has a set of built-in functions that you can use to modify strings.
PHP
68
returns the string in upper case.
strtoupper()
69
returns the string in lower case.
strtolower()
70
replaces some characters with some other characters in a string.
str_replace()
71
To insert characters that are illegal in a string, use an_______
escape character.
72
is a backslash \ followed by the character you want to insert.
escape character
73
what are the escape characters used in PHP
\ ' \ " \ $ \n \r \t \f \ooo \xhh
74
What is the escape character for single quote
\ '
75
What is the escape character for double quote
\ "
76
What is the escape character for PHP variable
\ $
77
What is the escape character for new line
\n
78
What is the escape character for Carriage Return
\r
79
What is the escape character for Tab
\t
80
What is the escape character for Form Feed
\f
81
What is the escape character for octal value
\ooo
82
What is the escape character for Hex Value
\xhh
83
There are three main numeric types in PHP:
Integer Float Number Strings
84
PHP has two more data types used for numbers:
Infinity NaN
85
Variables of ________ are created when you assign a value to them.
numeric types
86
Sometimes you need to change a variable from one data type into another, and sometimes you want a variable to have a specific data type.
Casting
87
Casting in PHP is done with these statements:
(string) (int) (float) (bool) (array) (object) (unset)
88
Converts to data type String
(string)
89
Converts to data type Integer
(int)
90
Converts to data type Float
(float)
91
Converts to data type Boolean
(bool)
92
Converts to data type Array
(array)
93
Converts to data type Object
(object)
94
Converts to data type NULL
(unset)