{"id":335,"date":"2016-06-17T10:55:08","date_gmt":"2016-06-17T09:55:08","guid":{"rendered":"https:\/\/yellowweb.id\/blog\/?p=335"},"modified":"2016-06-17T10:55:08","modified_gmt":"2016-06-17T09:55:08","slug":"melihat-cara-kerja-file-php","status":"publish","type":"post","link":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/","title":{"rendered":"Melihat Cara Kerja File PHP"},"content":{"rendered":"<p>Artikel kali ini akan membahas bagaimana cara file.php bekerja pada saat dieksukusi. So mari kita lihat bagaimana file php tersebut diproses.<\/p>\n<p><!--more--><\/p>\n<p>File .php termasuk kategori file <a href=\"https:\/\/id.wikipedia.org\/wiki\/Bahasa_skrip\">scripting<\/a> artinya ketika kita ingin menggunakan dapat langsung disisipkan dalam hal ini file .php disisipkan di file .html, css maupun javascript.<\/p>\n<p>Web server(apache) akan melakukan pengecekan mana file.php dan bukan file.php.<\/p>\n<p><a href=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-336 aligncenter\" src=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP.jpg\" alt=\"Melihat-Cara-Kerja-File-PHP\" width=\"612\" height=\"409\" srcset=\"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP.jpg 612w, https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-300x200.jpg 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>Web server akan membaca file-php.php dari atas mulai baris pertama, ketika ditemukan tag berupa html, maka akan di lewati hingga menemukan tag php &lt;?php .. ?&gt; yang pada akhirnya akan di eksekusi hingga tag pembuka php sampai ditutup tag penutup php.<\/p>\n<p>File tersebut jangan lupa di save as sebagai file .php (ekstensi .php) karena apabila masih berupa file html maka file tersebut hanya akan dibaca berupa file html.<\/p>\n<p>Ada juga yang langsung menuliskan file php tanpa disisipkan kedalam tag html, karena tentunya akan lebih cepat dieksekusi.<\/p>\n<p>Kalau melihat perbandingan lebih cepat mana kita tidak bisa membedakan karena file php sendiri sudah di buat agar di eksekusi layaknya sebuah file html.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artikel kali ini akan membahas bagaimana cara file.php bekerja pada saat dieksukusi. So mari kita lihat bagaimana file php tersebut diproses.<\/p>\n","protected":false},"author":1,"featured_media":337,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110,11],"tags":[8,13,156,88,214],"class_list":["post-335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-tutorial","tag-css","tag-html","tag-javascript","tag-php","tag-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Melihat Cara Kerja File 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\/melihat-cara-kerja-file-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Melihat Cara Kerja File PHP - YELLOWWEB.ID\" \/>\n<meta property=\"og:description\" content=\"Artikel kali ini akan membahas bagaimana cara file.php bekerja pada saat dieksukusi. So mari kita lihat bagaimana file php tersebut diproses.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/\" \/>\n<meta property=\"og:site_name\" content=\"YELLOWWEB.ID\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-17T09:55:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg?fit=750%2C422&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"422\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\\\/melihat-cara-kerja-file-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/\"},\"author\":{\"name\":\"yellowweb\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"headline\":\"Melihat Cara Kerja File PHP\",\"datePublished\":\"2016-06-17T09:55:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/\"},\"wordCount\":177,\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/Melihat-Cara-Kerja-File-PHP-2.jpg\",\"keywords\":[\"css\",\"html\",\"javascript\",\"php\",\"programming\"],\"articleSection\":[\"PHP\",\"Tutorial\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/\",\"name\":\"Melihat Cara Kerja File PHP - YELLOWWEB.ID\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/Melihat-Cara-Kerja-File-PHP-2.jpg\",\"datePublished\":\"2016-06-17T09:55:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/Melihat-Cara-Kerja-File-PHP-2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/Melihat-Cara-Kerja-File-PHP-2.jpg\",\"width\":750,\"height\":422,\"caption\":\"Melihat-Cara-Kerja-File-PHP-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/melihat-cara-kerja-file-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Melihat Cara Kerja File 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":"Melihat Cara Kerja File 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\/melihat-cara-kerja-file-php\/","og_locale":"en_GB","og_type":"article","og_title":"Melihat Cara Kerja File PHP - YELLOWWEB.ID","og_description":"Artikel kali ini akan membahas bagaimana cara file.php bekerja pada saat dieksukusi. So mari kita lihat bagaimana file php tersebut diproses.","og_url":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/","og_site_name":"YELLOWWEB.ID","article_published_time":"2016-06-17T09:55:08+00:00","og_image":[{"width":750,"height":422,"url":"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg?fit=750%2C422&ssl=1","type":"image\/jpeg"}],"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\/melihat-cara-kerja-file-php\/#article","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/"},"author":{"name":"yellowweb","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"headline":"Melihat Cara Kerja File PHP","datePublished":"2016-06-17T09:55:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/"},"wordCount":177,"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg","keywords":["css","html","javascript","php","programming"],"articleSection":["PHP","Tutorial"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/","url":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/","name":"Melihat Cara Kerja File PHP - YELLOWWEB.ID","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#primaryimage"},"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg","datePublished":"2016-06-17T09:55:08+00:00","author":{"@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"breadcrumb":{"@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#primaryimage","url":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg","contentUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2016\/06\/Melihat-Cara-Kerja-File-PHP-2.jpg","width":750,"height":422,"caption":"Melihat-Cara-Kerja-File-PHP-2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.yellowweb.id\/blog\/melihat-cara-kerja-file-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.yellowweb.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Melihat Cara Kerja File 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\/335","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=335"}],"version-history":[{"count":1,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/338"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media\/337"}],"wp:attachment":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}