{"id":113,"date":"2015-08-24T11:20:56","date_gmt":"2015-08-24T10:20:56","guid":{"rendered":"https:\/\/yellowweb.id\/blog\/?p=113"},"modified":"2015-08-24T11:20:56","modified_gmt":"2015-08-24T10:20:56","slug":"merubah-footer-secara-otomatis-lewat-php","status":"publish","type":"post","link":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/","title":{"rendered":"Merubah Footer Secara Otomatis Lewat PHP"},"content":{"rendered":"<p><a href=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-114 aligncenter\" src=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg\" alt=\"copyright-yellowweb\" width=\"831\" height=\"362\" srcset=\"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg 831w, https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb-300x131.jpg 300w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/a>Untuk tutorial kali ini kita akan mencoba membuat sebuah tahun footer hak cipta (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Copyright\" target=\"_blank\">copyright<\/a>) berubah secara otomatis. Mari kita coba teman-teman.<\/p>\n<p><!--more-->Biasanya di setiap website terdapat icon atau simbol hak cipta berserta tahunnya. Nah untuk tutorial kali ini kita akan membuat sebuah footer yang berganti secara otomatis (dinamic) ketika tahun berganti.<\/p>\n<p>Sekarang teman-teman buatlah file dengan <span style=\"color: #ff0000;\">ekstensi.php<\/span> seperti berikut ini:<\/p>\n<pre class=\"lang:default decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n    &lt;meta charset=\"UTF-8\"&gt;\r\n    &lt;title&gt;Date Otomatis&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n    &lt;div id=\"footer\"&gt;\r\n        &lt;p&gt;Copyright &amp;copy; &lt;?php echo date(\"Y\")?&gt;&lt;\/p&gt; &lt;!-- membuat tahun secara dinamic dengan PHP oleh YELLOWWEB --&gt;\r\n    &lt;\/div&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>Nah mudah bukan, kalian langsung bisa mencobanya. Dengan menggunakan cara seperti ini akan lebih efektif dan efisien.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Untuk tutorial kali ini kita akan mencoba membuat sebuah tahun footer hak cipta (copyright) berubah secara otomatis. Mari kita coba teman-teman.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,11],"tags":[92,93,86,91,90,87,88,89],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-tips-n-trik","category-tutorial","tag-belajar-php","tag-belajar-web-programming","tag-date","tag-dinamic","tag-dinamis","tag-footer","tag-php","tag-tanggal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Merubah Footer Secara Otomatis Lewat 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\/merubah-footer-secara-otomatis-lewat-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Merubah Footer Secara Otomatis Lewat PHP - YELLOWWEB.ID\" \/>\n<meta property=\"og:description\" content=\"Untuk tutorial kali ini kita akan mencoba membuat sebuah tahun footer hak cipta (copyright) berubah secara otomatis. Mari kita coba teman-teman.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/\" \/>\n<meta property=\"og:site_name\" content=\"YELLOWWEB.ID\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-24T10:20:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-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\\\/merubah-footer-secara-otomatis-lewat-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/\"},\"author\":{\"name\":\"yellowweb\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"headline\":\"Merubah Footer Secara Otomatis Lewat PHP\",\"datePublished\":\"2015-08-24T10:20:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/\"},\"wordCount\":84,\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/copyright-yellowweb.jpg\",\"keywords\":[\"belajar php\",\"belajar web programming\",\"date\",\"dinamic\",\"dinamis\",\"footer\",\"php\",\"tanggal\"],\"articleSection\":[\"Tips n Trik\",\"Tutorial\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/\",\"name\":\"Merubah Footer Secara Otomatis Lewat PHP - YELLOWWEB.ID\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/copyright-yellowweb.jpg\",\"datePublished\":\"2015-08-24T10:20:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/copyright-yellowweb.jpg\",\"contentUrl\":\"https:\\\/\\\/yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/copyright-yellowweb.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/merubah-footer-secara-otomatis-lewat-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Merubah Footer Secara Otomatis Lewat 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":"Merubah Footer Secara Otomatis Lewat 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\/merubah-footer-secara-otomatis-lewat-php\/","og_locale":"en_GB","og_type":"article","og_title":"Merubah Footer Secara Otomatis Lewat PHP - YELLOWWEB.ID","og_description":"Untuk tutorial kali ini kita akan mencoba membuat sebuah tahun footer hak cipta (copyright) berubah secara otomatis. Mari kita coba teman-teman.","og_url":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/","og_site_name":"YELLOWWEB.ID","article_published_time":"2015-08-24T10:20:56+00:00","og_image":[{"url":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-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\/merubah-footer-secara-otomatis-lewat-php\/#article","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/"},"author":{"name":"yellowweb","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"headline":"Merubah Footer Secara Otomatis Lewat PHP","datePublished":"2015-08-24T10:20:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/"},"wordCount":84,"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#primaryimage"},"thumbnailUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg","keywords":["belajar php","belajar web programming","date","dinamic","dinamis","footer","php","tanggal"],"articleSection":["Tips n Trik","Tutorial"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/","url":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/","name":"Merubah Footer Secara Otomatis Lewat PHP - YELLOWWEB.ID","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#primaryimage"},"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#primaryimage"},"thumbnailUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg","datePublished":"2015-08-24T10:20:56+00:00","author":{"@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"breadcrumb":{"@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#primaryimage","url":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg","contentUrl":"https:\/\/yellowweb.id\/blog\/wp-content\/uploads\/2015\/08\/copyright-yellowweb.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.yellowweb.id\/blog\/merubah-footer-secara-otomatis-lewat-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.yellowweb.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Merubah Footer Secara Otomatis Lewat 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\/113","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=113"}],"version-history":[{"count":2,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}