Server and Client side scripting Flashcards
What is server side scripting used for
Interactive, personalised website
What are the uses of scripting?
Allows websites to:
- Have dynamic content
- Easy creation of a user interface for a database
- Relatively easy to maintain and modify website outputs
What can be used as a server side script?
Anything file that can be executed by the webserver and that returns a HTML
What are some common server side script languages?
- PHP
- Pearl
- Java
- Ruby
- ASP
- Python
Where are two places you may find logging information in relation to server side scripts?
- In the script to maintain logs of specific actions
- Web server will log the fact the script has executed
How might security holes in server side scripts websites come about?
- Webserver bugs
- Bugs in language itself
- Poor development
What is client side script?
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
What are some good uses of client side scripting?
- Improves interactivity of website
- Validates data entered into form before sent to web server
- Provides on screen help for form completion
What are some bad uses of client side scripting?
- Exploits user ignorance to gather information
- Install malicious software
- Annoy users with popups
What is the main apache configuration file?
httpd.conf
What is the document root parameter in an Apache server?
Used to specify which directory the web server should retrieve documents from
What does the ‘error log’ parameter in an Apache server specify?
Where the error log entries will be placed
What does the loglevel parameter in an Apache server specify?
Specifies the severity of the message to write to the error log
What does the customlog parameter in an Apache server specify?
Where the location of the access logs will be kept
What does the format parameter in an Apache server specify?
It is used to configure the log file format