Unit 1 Flashcards

1
Q

What is a static website?

A

One that is usually written in plain HTML (may include some CSS and JavaScript). A static website contains web pages with fixed content.

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

What is a dynamic website?

A

Dynamic website is one that is written using a server-side scripting language such as PHP. Commonly includes functionalities, such as data access, database manipulation, manages user connections etc.

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

Differentiate between static and dynamic websites.

A
  • Static websites are written only in HTML accompanied by CSS and JavaScript; however, dynamic websites are written using server-side scripting languages such as PHP, ASP.NET, JSP, or Coldfusion.
  • Static webpages contain fixed content meaning that it stays the same unless you manually alter the HTML, CSS or JS code. On the other hand, dynamic webpages display different content for different users and allow for user interaction made possible by the server-side scripting language working in the background.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is client-side scripting?

A

A script that is executed by the browser that resides on the user’s computer.

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

What is server-side scripting?

A

A script executed by the server (Web server), and the page is sent to the user’s browser.

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

Differentiate between client-side and server-side scripting

A

One is executed by the browser the other by the server; moreover, server side scripting can connect to databases that reside on the web server or another server, Client side scripting cannot connect to any database server.

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

What is PHP?

A

PHP Hypertext Preprocessor, is a server-side scripting language designed specifically for the web. It can be embedded in HTML page that will be executed every-time the page is visited.

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

What is the difference between “echo” and “print” output statements?

A

Echo has no return value, can have multiple parameters and is marginally faster while print has a return value of 1 and takes one argument.

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

What is the purpose of php.ini file?

A

The php.ini file is default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. Moreover, it is the final and most immediate way to affect PHP’s functionality.

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

What are the benefits of using PHP?

A
  1. Open source
  2. Ease of learning
  3. OS and database independence
  4. Ease of deployment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the limitations of using PHP?

A
  1. Security Issues (Session Hijacking & SQL Injection)
  2. Not suitable for desktop applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly