Web-based computing pt2 Flashcards

1
Q

What is CGI?

A

CGI = Common Gateway Interface

An underlying mechanism provided by web servers to execute programs (“CGI scripts) in response to HTTP GET/POST requests.

Simple way to generate dynamic content, not tied to any particular language or environment

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

How do CGI-Enabled web servers know what program to execute?

A

By looking at the suffix specified in the URL:

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

What would the CGI script look like written in Unix Bourne shell that generates HTML showing who is logged onto the web server when it is run?

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

How would the greet.pl example using a GET request not a POST request?

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

What are SSI’s?

A

Service Side Includes

Were an early adopter of the idea of including directives in the static HTML files

  • These directives execute other porgrams or include data from environment variables, etc.

When the web server encounters a server side include directive in an HTML file that it is about to send back to a browser/client, the server performs the processing specific by the SSI directive (it “evaluates” the document)

  • It might include the contents of a specified file in the HTML in place of the SSI directive
    • Like boilerplate headers/footers/logos
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the basic format of server side includes?

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

How are SSIs used to produce HTML containing values from server-side evironment variables?

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

What is the ode to invoke external commands on the server directly using SSI?

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

Regardless of the server-side scripting technologies used, how is a basic web application usually structured?

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

What does PHP stand for?

A

Personal Home Page / Personal Hypertext Preprocessing

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

What are the details of PHP’s syntax, etc

How is form data, server info and environment info retrieved?

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

What would an SQL statement look like to get info about student number 6423456?

How would this be put into a query for mysqli? (in php)

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