{"id":268,"date":"2020-02-24T10:22:43","date_gmt":"2020-02-24T10:22:43","guid":{"rendered":"http:\/\/learnlearn.uk\/alevelcs\/?page_id=268"},"modified":"2021-03-08T05:57:58","modified_gmt":"2021-03-08T05:57:58","slug":"client-server-side-scripting","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/","title":{"rendered":"Client &#038; Server Side Scripting"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Serving Web Pages<\/h2>\n<div class=\"tabcontent\">\n\n<h3>How web pages are served<\/h3>\n<p>Web pages are served using a server &#8211; client relationship.<\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The user enters the URL of the website\/web-page to be loaded into a web browser. The browser looks in the computer&#8217;s DNS cache to see if a matching IP address is stored.<br \/>\nIf none is found then a request is sent to the ISP&#8217;s DNS resolver server to find out the IP address (NOT Found \u2192 step 2, found \u2192 step 4).<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The DNS resolver looks for the IP address and if it is stored the DNS Server returns the IP address to the originator.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If it is not found it is passed on to a higher level DNS. Once found the original DNS caches the IP address for future use and returns the IP address to the user.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The browser uses the IP address to send the web page request to the web server.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The web server retrieves the page and sends it to the originator.<\/span><\/li>\n<li style=\"font-weight: 400;\">The browser interprets the script and loads the page.<\/li>\n<\/ol>\n<h3>Tutorial Video<\/h3>\n<p><a href=\"https:\/\/drive.google.com\/open?id=1J-Bt9f2WA0TSX-V5BCHNxI6a6bci9FC1\">Can&#8217;t access YouTube? Click Here for the Google Drive version.<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/rIDL5GzisA8\" width=\"800\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n<\/div><h2 class=\"tabtitle\">Client Side Scripting<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Client Side Scripting<\/h3>\n<p>With client side scripting the script is executed on the client machine.<\/p>\n<ul>\n<li>The code is embedded within the web page itself.<\/li>\n<li>The code is interpreted by the web browser.<\/li>\n<li>The most common form of server side scripting is JavaScript.<\/li>\n<li>Any persistent data is stored on the client machine using Local Storage \/ Cookies<\/li>\n<\/ul>\n<p><strong>Activity<\/strong><\/p>\n<p>Try out some client side scripting\u00a0<a href=\"https:\/\/www.w3schools.com\/js\/js_intro.asp\">here on the W3Schools Website<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Server Side Scripting<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Server Side Scripting<\/h3>\n<p>With server side scripting the script is executed on the server. The most common form of server side scripting is PHP<\/p>\n<p>Any persistent data is stored on the server, usually in an SQL database.<\/p>\n<p>Server side script execution process:<\/p>\n<ol>\n<li>The client&#8217;s web browser requests the web page page.<\/li>\n<li>The web server accesses the page\/resource.<\/li>\n<li>The web server executes the code.<\/li>\n<li>The web server generates the web-page.<\/li>\n<li>The web server returns the page to the client<\/li>\n<li>The web browser displays the page<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1wofIu7Y62UMo_iElp-sC6Xoh7aaaBsUAu-6pIzRjRDw\/edit?usp=sharing\">Presentation<\/a><\/p>\n<p><a href=\"https:\/\/scratch.mit.edu\/projects\/374048862\/\">Extremely professional looking Scratch animation<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How web pages are served Web pages are served using a server &#8211; client relationship. The user enters the URL of the website\/web-page to be loaded into a web browser. The browser looks in the computer&#8217;s DNS cache to see if a matching IP address is stored. If none is found then a request is&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Client &#038; Server Side Scripting<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Client &amp; Server Side Scripting - A Level Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Client &amp; Server Side Scripting - A Level Computer Science\" \/>\n<meta property=\"og:description\" content=\"How web pages are served Web pages are served using a server &#8211; client relationship. The user enters the URL of the website\/web-page to be loaded into a web browser. The browser looks in the computer&#8217;s DNS cache to see if a matching IP address is stored. If none is found then a request is&hellip;&nbsp;Read More &raquo;Client &#038; Server Side Scripting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\" \/>\n<meta property=\"og:site_name\" content=\"A Level Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-08T05:57:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\",\"name\":\"Client & Server Side Scripting - A Level Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\"},\"datePublished\":\"2020-02-24T10:22:43+00:00\",\"dateModified\":\"2021-03-08T05:57:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"A Level Computer Science Home\",\"item\":\"https:\/\/learnlearn.uk\/alevelcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Client &#038; Server Side Scripting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"name\":\"A Level Computer Science\",\"description\":\"CIE Specification\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\",\"name\":\"A Level Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"A Level Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Client & Server Side Scripting - A Level Computer Science","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/","og_locale":"en_GB","og_type":"article","og_title":"Client & Server Side Scripting - A Level Computer Science","og_description":"How web pages are served Web pages are served using a server &#8211; client relationship. The user enters the URL of the website\/web-page to be loaded into a web browser. The browser looks in the computer&#8217;s DNS cache to see if a matching IP address is stored. If none is found then a request is&hellip;&nbsp;Read More &raquo;Client &#038; Server Side Scripting","og_url":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/","og_site_name":"A Level Computer Science","article_modified_time":"2021-03-08T05:57:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/","url":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/","name":"Client & Server Side Scripting - A Level Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#website"},"datePublished":"2020-02-24T10:22:43+00:00","dateModified":"2021-03-08T05:57:58+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/alevelcs\/client-server-side-scripting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"A Level Computer Science Home","item":"https:\/\/learnlearn.uk\/alevelcs\/"},{"@type":"ListItem","position":2,"name":"Client &#038; Server Side Scripting"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/alevelcs\/#website","url":"https:\/\/learnlearn.uk\/alevelcs\/","name":"A Level Computer Science","description":"CIE Specification","publisher":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization","name":"A Level Computer Science","url":"https:\/\/learnlearn.uk\/alevelcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"A Level Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/alevelcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"How web pages are served Web pages are served using a server &#8211; client relationship. The user enters the URL of the website\/web-page to be loaded into a web browser. The browser looks in the computer&#8217;s DNS cache to see if a matching IP address is stored. If none is found then a request is&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/268"}],"collection":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":14,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/268\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/268\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/media?parent=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}