{"id":236,"date":"2022-11-28T19:11:01","date_gmt":"2022-11-28T19:11:01","guid":{"rendered":"http:\/\/learnlearn.uk\/ibcs\/?page_id=236"},"modified":"2022-11-28T19:11:01","modified_gmt":"2022-11-28T19:11:01","slug":"client-side-server-side-scripting","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/","title":{"rendered":"Client Side &#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>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).<\/li>\n<li>The DNS resolver looks for the IP address and if it is stored the DNS Server returns the IP address to the originator.<\/li>\n<li>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.<\/li>\n<li>The browser uses the IP address to send the web page request to the web server.<\/li>\n<li>The web server retrieves the page and sends it to the originator.<\/li>\n<li>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\" data-mce-fragment=\"1\"><\/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\/ibcs\/client-side-server-side-scripting\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Client Side &#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 Side &amp; Server Side Scripting - IB 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\/ibcs\/client-side-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 Side &amp; Server Side Scripting - IB 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 Side &#038; Server Side Scripting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/\" \/>\n<meta property=\"og:site_name\" content=\"IB Computer Science\" \/>\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\/ibcs\/client-side-server-side-scripting\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/\",\"name\":\"Client Side & Server Side Scripting - IB Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\"},\"datePublished\":\"2022-11-28T19:11:01+00:00\",\"dateModified\":\"2022-11-28T19:11:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IB Computer Science\",\"item\":\"https:\/\/learnlearn.uk\/ibcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Client Side &#038; Server Side Scripting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"name\":\"IB Computer Science\",\"description\":\"- learnlearn..uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\",\"name\":\"IB Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"width\":300,\"height\":41,\"caption\":\"IB Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Client Side & Server Side Scripting - IB 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\/ibcs\/client-side-server-side-scripting\/","og_locale":"en_GB","og_type":"article","og_title":"Client Side & Server Side Scripting - IB 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 Side &#038; Server Side Scripting","og_url":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/","og_site_name":"IB Computer Science","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/","url":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/","name":"Client Side & Server Side Scripting - IB Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#website"},"datePublished":"2022-11-28T19:11:01+00:00","dateModified":"2022-11-28T19:11:01+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/ibcs\/client-side-server-side-scripting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IB Computer Science","item":"https:\/\/learnlearn.uk\/ibcs\/"},{"@type":"ListItem","position":2,"name":"Client Side &#038; Server Side Scripting"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/ibcs\/#website","url":"https:\/\/learnlearn.uk\/ibcs\/","name":"IB Computer Science","description":"- learnlearn..uk","publisher":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/ibcs\/#organization","name":"IB Computer Science","url":"https:\/\/learnlearn.uk\/ibcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","contentUrl":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","width":300,"height":41,"caption":"IB Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/ibcs\/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\/ibcs\/wp-json\/wp\/v2\/pages\/236"}],"collection":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":1,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/236\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/236\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/media?parent=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}