server side scripting Flashcards
What is server side scripting
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)
What is a web server extension?
A program thats written in native code. The script is executed on the web server and alows dynamic generation of content.
what is common gateway interface?
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)
Whats the post method of querying?
the variable data is passed with the message body so doesnt appear in url.
post /webpage.asp
how to retrive sent variable names?
Variable = Request (“sentvariable”)
HOw to set up the post/get methods?
{form action=”thing.asp” method=”get/post”>
how does the varible look in the url?
http:URL.THing.asp?variable=value
what does response.write do?
writes whats in the ( )
whats the get method of querying?
the variable data is passed in the url.
something.asp?variable=value
Some server side scripting languages
ASP, PHP , perl
WHy are server side scrips done via an interpreter?
as its easy to read the scripts
its less likly to bring down the web server
executables may contain viruses
How can a web brower connect to a Database
- Create connection
- Select database
- Proform DB query
- Ise the returned data
- close connection
when do you use post/get requests
Get for retriving small amounts of data thats not secure
Post for sending lots of data(more securly)