Unit 1 Flashcards
What is a static website?
One that is usually written in plain HTML (may include some CSS and JavaScript). A static website contains web pages with fixed content.
What is a dynamic website?
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.
Differentiate between static and dynamic websites.
- 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.
What is client-side scripting?
A script that is executed by the browser that resides on the user’s computer.
What is server-side scripting?
A script executed by the server (Web server), and the page is sent to the user’s browser.
Differentiate between client-side and server-side scripting
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.
What is PHP?
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.
What is the difference between “echo” and “print” output statements?
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.
What is the purpose of php.ini file?
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.
What are the benefits of using PHP?
- Open source
- Ease of learning
- OS and database independence
- Ease of deployment
What are the limitations of using PHP?
- Security Issues (Session Hijacking & SQL Injection)
- Not suitable for desktop applications