Mendez: chaps 23-26 Flashcards

(11 cards)

1
Q

what is PHP?

A

hypertext per-processor: was 1st named (PHP) personal home page

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

how does PHP work and with what?

A

a (CGI) Common Gateway Interface script that works with the server side as its a server language and not with the browser side of things.

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

what is a client side language?

A

a comp. language that works with the browser on the host computer. if host comp. is slow then webpage loads slow.

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

what is a server side language?

A

PHP is an example and the language processing occurs on the server side before sending info to the user’s computer. (*code is hidden from users). -reduces workload on users comp.

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

what is java?

A

class-based language. -objects divided into classes. can’t have properties added dynamically to classes.

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

what is java Script?

A

object-oriented: properties and methods can be added to objects dynamically.

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

what is progressive enhancement?

A

when a web pg is built without javaScript then JavaScript is added to enhance and build on the website to make it more appealing.

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

what are the two php tags and why use one over the other?

A

long hand:

short hand:
?>
*longhand is best as shorthand needs to be turned ‘on’ on each server.

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

what are the 3 PHP error types?

A

Notices: cpde continues to run- undeclared variables.

  • Warnings: doesn’t stop running code, points out error in script.
  • Errors: code stops running. causes could be - missing semicolons, function, class definitions, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what does the ^ symbol mean in PHP?

A

^ except. used when telling a function to do something ‘except’ something else.

example: error_notice(E_ALL^E_NOTICE)
* here all errors are shown when script is read except the Notice ones.

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

what does the | mean in PHP?

A

means ‘or’ used in PHP functions.
ex.
error_notice(E_WARNING | E_ERROR))

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