Homework‐ Client‐Server Architecture - tylerguybern/Tylerguybern GitHub Wiki
What is Client-Server architecture?
Is is a bond between two programs one being the client and the other being a server. The client makes a service or request to the server program in regards to help identify its needs. Three important pieces of this are the presentation which is the initial request made. Next is the application logic which is the information. being gained by the server. lastly, the data storage which is being gather between the client and server. Some major networks that use this method re email and the world wide web.
Where does PHP and ASP code gets executed? Can you access to code from these programming languages from your web browser?
PHP is Hypertext preprocessors, they are a script language that helps to create dynamic websites; are also executed on the servers. ASP is a HTML coded file that has texts, graphic, codes; are executed on servers. PHP is able to be viewed by the browser in localhost but ASP cannot be viewed in browser.
Where does JavaScript code gets executed? Can you access to code from this programming language from your web browser?
JavaScript is mainly executed within the browser but isn't always done that way. It can also either be executed through the server or through a console which allows for the quickest coded results. Yes you access to code from this programming language from your web browser.
What is client-side storage? What is the difference between cookies and IndexedDB?
A way for users to be able to store there data within the client, that uses certain scripts from JAVA that users will be able to store and access certain data within a client; can be accessible whenever it is needed. Cookies are usually only read by the server rather than by the browser and are used to remember information about a website that you have visited before so the information can be put to memory. Cookies are also very vulnerable and can easily be hacked or attacked. IndexedDB is used for client-side storage of heavy amounts of structured data, is very powerful but way harder to use/learn how to use. Cookies are mostly used because they are easier to view but IndexedDB is better because it holds more but harder to learn.