{"id":141,"date":"2015-09-16T04:07:44","date_gmt":"2015-09-16T03:07:44","guid":{"rendered":"https:\/\/yellowweb.id\/blog\/?p=141"},"modified":"2015-09-16T04:07:44","modified_gmt":"2015-09-16T03:07:44","slug":"hello-world-di-php","status":"publish","type":"post","link":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/","title":{"rendered":"Hello World di PHP"},"content":{"rendered":"<p><a href=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-142 aligncenter\" src=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg\" alt=\"hello-world-di-php-yellowweb\" width=\"480\" height=\"320\" srcset=\"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg 480w, https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb-300x200.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a>Halo teman-teman, apa kabar \ud83d\ude42 , semoga kalian sehat ya&#8230;<\/p>\n<p>Oke untuk artikel kali ini kita akan mencoba bagaimana mencetak atau menampilkan sebuah teks, tetapi menggunakan <a href=\"https:\/\/en.wikipedia.org\/wiki\/PHP\" target=\"_blank\">PHP<\/a>.<\/p>\n<p><!--more--><\/p>\n<p>Untuk menampilkan sebuah tulisan dengan menggunakan PHP, kalian terlebih dahulu buatlah file misal: <code><span style=\"color: #ff0000;\">hello.php<\/span><\/code>, seperti dibawah ini:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\n    \/\/membuat tulisan hello world menggunakan PHP\r\n    \r\n    echo\"Hello World!\";\r\n\r\n?&gt;<\/pre>\n<p>Kalau sudah kalian bisa mengaksesnya melalui <span style=\"color: #ff0000;\"><code>url localhost\/nama-folder<\/code><\/span>.<\/p>\n<p>Ya karena PHP ini sifatnya <a href=\"https:\/\/en.wikipedia.org\/wiki\/Server-side_scripting\" target=\"_blank\"><code><span style=\"color: #ff0000;\">server-side<\/span> <\/code><\/a>jadi sintaks yang kita tuliskan di editor, tidak akan ditampilkan pada saat kita melihat source pada browser.<\/p>\n<p>Berbeda halnya dengan HTML, CSS dan JavaScript yang bersifat <span style=\"color: #ff0000;\"><code><a style=\"color: #ff0000;\" href=\"https:\/\/en.wikipedia.org\/wiki\/Client-side_scripting\" target=\"_blank\">client side<\/a><\/code><\/span>.<\/p>\n<p>Jadi ada beberapa langkah yang harus disiapkan untuk menjalankan file PHP, diantaranya siapkan web servernya, ini ada beberapa tools seperti <a href=\"https:\/\/www.apachefriends.org\/index.html\" target=\"_blank\">XAMPP<\/a>, <a href=\"http:\/\/www.wampserver.com\/en\/\" target=\"_blank\">WAMP<\/a>, <a href=\"http:\/\/www.appservnetwork.com\/\" target=\"_blank\">AppServ<\/a>, dll.<\/p>\n<p>Oke teman-teman, sampai berjumpa lagi ditutorial berikutnya bye :).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Halo teman-teman, apa kabar \ud83d\ude42 , semoga kalian sehat ya&#8230; Oke untuk artikel kali ini kita akan mencoba bagaimana mencetak atau menampilkan sebuah teks, tetapi menggunakan PHP.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110,11],"tags":[93,113,88,111,112,12,114,5,115],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-php","category-tutorial","tag-belajar-web-programming","tag-client-side","tag-php","tag-server","tag-server-side","tag-tutorial","tag-tutorial-php","tag-web-programming","tag-web-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hello World di PHP - YELLOWWEB.ID<\/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:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hello World di PHP - YELLOWWEB.ID\" \/>\n<meta property=\"og:description\" content=\"Halo teman-teman, apa kabar \ud83d\ude42 , semoga kalian sehat ya&#8230; Oke untuk artikel kali ini kita akan mencoba bagaimana mencetak atau menampilkan sebuah teks, tetapi menggunakan PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/\" \/>\n<meta property=\"og:site_name\" content=\"YELLOWWEB.ID\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-16T03:07:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg\" \/>\n<meta name=\"author\" content=\"yellowweb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"yellowweb\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/\"},\"author\":{\"name\":\"yellowweb\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"headline\":\"Hello World di PHP\",\"datePublished\":\"2015-09-16T03:07:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/\"},\"wordCount\":114,\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/hello-world-di-php-yellowweb.jpg\",\"keywords\":[\"belajar web programming\",\"client-side\",\"php\",\"server\",\"server-side\",\"tutorial\",\"tutorial php\",\"web programming\",\"web server\"],\"articleSection\":[\"PHP\",\"Tutorial\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/\",\"name\":\"Hello World di PHP - YELLOWWEB.ID\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/hello-world-di-php-yellowweb.jpg\",\"datePublished\":\"2015-09-16T03:07:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/hello-world-di-php-yellowweb.jpg\",\"contentUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/hello-world-di-php-yellowweb.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/hello-world-di-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hello World di PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\",\"name\":\"YELLOWWEB.ID\",\"description\":\"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\",\"name\":\"yellowweb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"caption\":\"yellowweb\"},\"sameAs\":[\"https:\\\/\\\/www.yellowweb.id\"],\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/author\\\/yellowweb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hello World di PHP - YELLOWWEB.ID","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:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/","og_locale":"en_GB","og_type":"article","og_title":"Hello World di PHP - YELLOWWEB.ID","og_description":"Halo teman-teman, apa kabar \ud83d\ude42 , semoga kalian sehat ya&#8230; Oke untuk artikel kali ini kita akan mencoba bagaimana mencetak atau menampilkan sebuah teks, tetapi menggunakan PHP.","og_url":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/","og_site_name":"YELLOWWEB.ID","article_published_time":"2015-09-16T03:07:44+00:00","og_image":[{"url":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg","type":"","width":"","height":""}],"author":"yellowweb","twitter_card":"summary_large_image","twitter_misc":{"Written by":"yellowweb","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#article","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/"},"author":{"name":"yellowweb","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"headline":"Hello World di PHP","datePublished":"2015-09-16T03:07:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/"},"wordCount":114,"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#primaryimage"},"thumbnailUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg","keywords":["belajar web programming","client-side","php","server","server-side","tutorial","tutorial php","web programming","web server"],"articleSection":["PHP","Tutorial"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/","url":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/","name":"Hello World di PHP - YELLOWWEB.ID","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#primaryimage"},"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#primaryimage"},"thumbnailUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg","datePublished":"2015-09-16T03:07:44+00:00","author":{"@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"breadcrumb":{"@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#primaryimage","url":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg","contentUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/09\/hello-world-di-php-yellowweb.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.yellowweb.id\/blog\/hello-world-di-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.yellowweb.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Hello World di PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.yellowweb.id\/blog\/#website","url":"https:\/\/www.yellowweb.id\/blog\/","name":"YELLOWWEB.ID","description":"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.yellowweb.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829","name":"yellowweb","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","caption":"yellowweb"},"sameAs":["https:\/\/www.yellowweb.id"],"url":"https:\/\/www.yellowweb.id\/blog\/author\/yellowweb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":1,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}