{"id":5143,"date":"2015-06-05T09:38:02","date_gmt":"2015-06-05T09:38:02","guid":{"rendered":"http:\/\/demo.thimpress.com\/learnpress\/?post_type=lpr_course&amp;p=1481"},"modified":"2015-06-05T09:38:02","modified_gmt":"2015-06-05T09:38:02","slug":"php-5-introduction-to-coding-tutorial","status":"publish","type":"lp_course","link":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/","title":{"rendered":"PHP 5 Introduction to coding Tutorial"},"content":{"rendered":"<h5>WELCOME TO PHP!<\/h5>\n<div>\n<p>This tutorial will introduce you to PHP, a server-side scripting language you can use to make dynamic websites and web applications.<\/p>\n<\/div>\n<hr \/>\n<h5>WHAT YOU SHOULD ALREADY<\/h5>\n<p>Before you continue you should have a basic understanding of the following:<\/p>\n<ul>\n<li>HTML<\/li>\n<li>CSS<\/li>\n<li>JavaScript<\/li>\n<\/ul>\n<hr \/>\n<h5>WHAT IS PHP?<\/h5>\n<ul>\n<li>PHP is an acronym for &#8220;PHP: Hypertext Preprocessor&#8221;<\/li>\n<li>PHP is a widely-used, open source scripting language<\/li>\n<li>PHP scripts are executed on the server<\/li>\n<li>PHP is free to download and use<\/li>\n<\/ul>\n<table id=\"table1\" class=\"lamp\">\n<tbody>\n<tr>\n<th><img decoding=\"async\" src=\"http:\/\/www.w3schools.com\/images\/lamp.jpg\" alt=\"Note\" \/><\/th>\n<td><strong>PHP is an amazing and popular language!<\/strong>It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)!<br \/>\nIt is deep enough to run the largest social network (Facebook)!<br \/>\nIt is also easy enough to be a beginner&#8217;s first server side language!<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h5>WHAT IS A PHP FILE ?<\/h5>\n<ul>\n<li>PHP files can contain text, HTML, CSS, JavaScript, and PHP code<\/li>\n<li>PHP code are executed on the server, and the result is returned to the browser as plain HTML<\/li>\n<li>PHP files have extension &#8220;.php&#8221;<\/li>\n<\/ul>\n<hr \/>\n<h5>WHAT CAN PHP DO?<\/h5>\n<ul>\n<li>PHP can generate dynamic page content<\/li>\n<li>PHP can create, open, read, write, delete, and close files on the server<\/li>\n<li>PHP can collect form data<\/li>\n<li>PHP can send and receive cookies<\/li>\n<li>PHP can add, delete, modify data in your database<\/li>\n<li>PHP can be used to control user-access<\/li>\n<li>PHP can encrypt data<\/li>\n<\/ul>\n<p>With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.<\/p>\n<hr \/>\n<h5>WHY PHP?<\/h5>\n<ul>\n<li>PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)<\/li>\n<li>PHP is compatible with almost all servers used today (Apache, IIS, etc.)<\/li>\n<li>PHP supports a wide range of databases<\/li>\n<li>PHP is free. Download it from the official PHP resource: <a href=\"http:\/\/www.php.net\/\" target=\"_blank\" rel=\"noopener\">www.php.net<\/a><\/li>\n<li>PHP is easy to learn and runs efficiently on the server side<\/li>\n<\/ul>\n<p><em>Now it&#8217;s time to check out of this course. Have fun!\u00a0<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will introduce you to PHP, a server-side scripting language you can use to make dynamic websites and web applications.<\/p>","protected":false},"author":1,"featured_media":9482,"template":"","course_category":[34],"course_tag":[],"class_list":["post-5143","lp_course","type-lp_course","status-publish","has-post-thumbnail","hentry","course_category-arts-crafts","course"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong<\/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:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong\" \/>\n<meta property=\"og:description\" content=\"This tutorial will introduce you to PHP, a server-side scripting language you can use to make dynamic websites and web applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Technological and Higher Education Institute of Hong Kong\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"970\" \/>\n\t<meta property=\"og:image:height\" content=\"560\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/\",\"url\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/\",\"name\":\"PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong\",\"isPartOf\":{\"@id\":\"https:\/\/thei.edu.hk\/sc\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg\",\"datePublished\":\"2015-06-05T09:38:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage\",\"url\":\"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg\",\"contentUrl\":\"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg\",\"width\":970,\"height\":560,\"caption\":\"courses 16\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thei.edu.hk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Courses\",\"item\":\"https:\/\/thei.edu.hk\/tc\/courses\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP 5 Introduction to coding Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thei.edu.hk\/sc\/#website\",\"url\":\"https:\/\/thei.edu.hk\/sc\/\",\"name\":\"Technological and Higher Education Institute of Hong Kong\",\"description\":\"Technological and Higher Education Institute of Hong Kong\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thei.edu.hk\/sc\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong","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:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/","og_locale":"zh_CN","og_type":"article","og_title":"PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong","og_description":"This tutorial will introduce you to PHP, a server-side scripting language you can use to make dynamic websites and web applications.","og_url":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/","og_site_name":"Technological and Higher Education Institute of Hong Kong","og_image":[{"width":970,"height":560,"url":"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/","url":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/","name":"PHP 5 Introduction to coding Tutorial - Technological and Higher Education Institute of Hong Kong","isPartOf":{"@id":"https:\/\/thei.edu.hk\/sc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg","datePublished":"2015-06-05T09:38:02+00:00","breadcrumb":{"@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#primaryimage","url":"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg","contentUrl":"https:\/\/thei.edu.hk\/wp-content\/uploads\/2022\/04\/courses-16.jpg","width":970,"height":560,"caption":"courses 16"},{"@type":"BreadcrumbList","@id":"https:\/\/thei.edu.hk\/sc\/courses\/php-5-introduction-to-coding-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thei.edu.hk\/"},{"@type":"ListItem","position":2,"name":"Courses","item":"https:\/\/thei.edu.hk\/tc\/courses\/"},{"@type":"ListItem","position":3,"name":"PHP 5 Introduction to coding Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/thei.edu.hk\/sc\/#website","url":"https:\/\/thei.edu.hk\/sc\/","name":"Technological and Higher Education Institute of Hong Kong","description":"Technological and Higher Education Institute of Hong Kong","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thei.edu.hk\/sc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"}]}},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/lp_course\/5143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/lp_course"}],"about":[{"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/types\/lp_course"}],"author":[{"embeddable":true,"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/lp_course\/5143\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/media\/9482"}],"wp:attachment":[{"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/media?parent=5143"}],"wp:term":[{"taxonomy":"course_category","embeddable":true,"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/course_category?post=5143"},{"taxonomy":"course_tag","embeddable":true,"href":"https:\/\/thei.edu.hk\/sc\/wp-json\/wp\/v2\/course_tag?post=5143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}