Web-based computing pt2 Flashcards
What is CGI?
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 do CGI-Enabled web servers know what program to execute?
By looking at the suffix specified in the URL:
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?
How would the greet.pl example using a GET request not a POST request?
What are SSI’s?
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
What is the basic format of server side includes?
How are SSIs used to produce HTML containing values from server-side evironment variables?
What is the ode to invoke external commands on the server directly using SSI?
Regardless of the server-side scripting technologies used, how is a basic web application usually structured?
What does PHP stand for?
Personal Home Page / Personal Hypertext Preprocessing
What are the details of PHP’s syntax, etc
How is form data, server info and environment info retrieved?
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)