Week 7 - PHP Part 1 Flashcards

1
Q

Apache

A

A type of web server software, different to MySQL which is a database.

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

CMS

A

Content Management System

Allows for users to create their own website without having to write too much code themselves.

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

What is PHP used for?

A

It’s used to make websites more interactive as it has access to a number of databases.

Eg; MySQL, Apache etc.

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

What’s the difference between client and server-side with PHP?

A

Client-side is used for displaying information, and submitting basic forms. Only HTML is seen on the client-side, no PHP.

Server-side is responsible for calculations and data storage.

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

What’s the difference between a loosely and strongly typed programming language?

A

Strongly typed requires you to determine what the data type is, like in Ruby or C.
Data types can’t be changed after the declaration.

Loosely typed is where you don’t have to declare, however data types can be changed after the declaration.

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

What are numerics?

A

Floats and integers.

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

What are the 4 ways to display variables?

A
  1. Listing concatenation ( , )
  2. Concatenation ( . )
  3. Embedded into the quotes of echo.
  4. Using escape characters " … "
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Resource Data Type

A

A special variable which holds a reference to an external resource like a database (MySQL) or accessing XML files.

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

Reference & Composite Data Types

A

Special data types which can contain multiple values or complex types of information.

Examples of reference data types include arrays & objects.

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

count()

A

An inbuilt function into PHP used for checking the number of elements in an array.

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

print r

A

Prints out all elements and their index.

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

Operator Precedence

A

Used to manage the order operators are evaluated.

( ) - operator precedence
[ ] - arrays
{ } content blocks/functions

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

Associativity

A

Used to manage the order operators of equal precedence are executed.

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

Escape Character

A

" … "

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

What is the client/server architecture with PHP involved?

A

3 tiers: Client, Processing Tier & Data Storage Tier

  • Client: makes HTTPS requests to the processing tier
  • Processing Tier: acts as the middle-man between the web browser client and data storage tier. This is implemeneted with PHP.
  • Data Storage Tier: stores data into a database and returns requests presented by the processing tier. This is implemeneted with MySQL and other databases.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Database

A

A stored collection of organised and structured information or data, stored electronically or in a computer system/server.

17
Q

What is a web server made up of?

A

Apache: a web server software used to run the web server (most common oen)

File System: retrieves what format the file is in (.html, .php, both)

PHP Engine: if there’s any PHP found from the file system, it will use this to interpret the PHP code and have it sent back as html to the client-side

Database: such as MySQL, which contains information sometimes needed by PHP for queries of data