php exam2

studied byStudied by 5 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 17

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

18 Terms

1

PHP

Hypertext Preprocessor (PHP)

New cards
2

PHP files

Files that can contain text, HTML, CSS, JavaScript, and PHP code and are executed on the server, with the result returned as plain HTML to the browser.

New cards
3

PHP syntax

The rules and structure of writing PHP code, including statements ending with a semi-colon, the use of the echo command for output, and the use of quotes for string values.

New cards
4

Variables

Named containers for storing data, with rules for naming conventions, case sensitivity, and the ability to specify a variable type.

New cards
5

Operators

Symbols used to perform operations on variables and values, including comparison operators, logical operators, and string operators.

New cards
6

Conditionals

Control structures used to make decisions in PHP code, including if, if-else, if-elseif, and switch statements.

New cards
7

Loops

Control structures used to repeat a block of code until a certain condition is met, including while, do-while, and for loops.

New cards
8

Functions

Blocks of reusable code that perform a specific task, defined using the function keyword followed by the function name and parentheses.

New cards
9

Variable Scope

The accessibility and lifespan of variables, including local variables created within a function, global variables accessed outside a function, and static variables that maintain their values between function calls.

New cards
10

Arrays

Data structures that store multiple values in a single variable, including indexed arrays, associative arrays, and multi-dimensional arrays.

New cards
11

foreach loop

A special loop used to process arrays in PHP, iterating over each element in the array.

New cards
12

Array Operators

Operators used to perform operations on arrays, including union, equality, identity, inequality, and non-identity operators.

New cards
13

SuperGlobals

Predefined variables in PHP that are always accessible, such as $GLOBALS, $_POST, and $_GET.

New cards
14

Forms and PHP

The use of action and method attributes in HTML forms to indicate the PHP file to be executed when the form is submitted and how the data is sent.

New cards
15

POST vs GET

The differences between the POST and GET methods for sending form data, including visibility, length limitations, and security considerations.

New cards
16

Security Consideration

Cross-Site Scripting (XSS):A type of attack where malicious scripts are injected into trusted websites, and measures to prevent XSS attacks, such as escaping input values using the htmlspecialchars() function.

New cards
17

PHP Date and Time

The use of the date() function to format dates and times in PHP, with various format options and the ability to include characters in the format.

New cards
18

Include and Require Statements

Statements used to insert the contents of a PHP file into another PHP file before the server executes it, with the difference between include and require in terms of error handling.

New cards
robot