Server and Client side scripting Flashcards

1
Q

What is server side scripting used for

A

Interactive, personalised website

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

What are the uses of scripting?

A

Allows websites to:

  • Have dynamic content
  • Easy creation of a user interface for a database
  • Relatively easy to maintain and modify website outputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can be used as a server side script?

A

Anything file that can be executed by the webserver and that returns a HTML

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

What are some common server side script languages?

A
  • PHP
  • Pearl
  • Java
  • Ruby
  • ASP
  • Python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where are two places you may find logging information in relation to server side scripts?

A
  • In the script to maintain logs of specific actions

- Web server will log the fact the script has executed

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

How might security holes in server side scripts websites come about?

A
  • Webserver bugs
  • Bugs in language itself
  • Poor development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is client side script?

A

Code downloaded from the server (as code) and executed in the web browser.
As far as the server is concerned the script is just like any other content that needs to be delivered

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

What are some good uses of client side scripting?

A
  • Improves interactivity of website
  • Validates data entered into form before sent to web server
  • Provides on screen help for form completion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some bad uses of client side scripting?

A
  • Exploits user ignorance to gather information
  • Install malicious software
  • Annoy users with popups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the main apache configuration file?

A

httpd.conf

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

What is the document root parameter in an Apache server?

A

Used to specify which directory the web server should retrieve documents from

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

What does the ‘error log’ parameter in an Apache server specify?

A

Where the error log entries will be placed

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

What does the loglevel parameter in an Apache server specify?

A

Specifies the severity of the message to write to the error log

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

What does the customlog parameter in an Apache server specify?

A

Where the location of the access logs will be kept

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

What does the format parameter in an Apache server specify?

A

It is used to configure the log file format

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

What is the default log file format for Windows IIS server?

A

W3C extended file format