server side scripting Flashcards

1
Q

What is server side scripting

A

Sequence of instructions that are executed by the server when a web page is requested. Dyamic creation of web pages.

(the web server dynamically creates the html)

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

What is a web server extension?

A

A program thats written in native code. The script is executed on the web server and alows dynamic generation of content.

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

what is common gateway interface?

A

a gateway between a web server and a web server extension that tells the server how to send information to a web server extension, and what to do after reciving info.

(interface between websever on programs on the webserver that create the dynamic html)

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

Whats the post method of querying?

A

the variable data is passed with the message body so doesnt appear in url.

post /webpage.asp

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

how to retrive sent variable names?

A

Variable = Request (“sentvariable”)

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

HOw to set up the post/get methods?

A

{form action=”thing.asp” method=”get/post”>

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

how does the varible look in the url?

A

http:URL.THing.asp?variable=value

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

what does response.write do?

A

writes whats in the ( )

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

whats the get method of querying?

A

the variable data is passed in the url.

something.asp?variable=value

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

Some server side scripting languages

A

ASP, PHP , perl

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

WHy are server side scrips done via an interpreter?

A

as its easy to read the scripts

its less likly to bring down the web server

executables may contain viruses

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

How can a web brower connect to a Database

A
  1. Create connection
  2. Select database
  3. Proform DB query
  4. Ise the returned data
  5. close connection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

when do you use post/get requests

A

Get for retriving small amounts of data thats not secure

Post for sending lots of data(more securly)

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