Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Herryz (bicara | kontrib)
Tanggal
Tag: Suntingan visualeditor-wikitext
Baris 5:
| file ext = .php, .phtml, .php3, .php4, .php5, .php7, .phps, .php-s, .pht
| paradigm = imperatif, [[pemrograman berorientasi objek|berorientasi objek]], prosedural, reflektif
| released = {{start date and age|1995|06|08}}<ref name="mysqlconference">{{cite web|last=Lerdorf | first=Rasmus | title=PHP on Hormones&nbsp;– history of PHP presentation by Rasmus Lerdorf given at the MySQL Conference in Santa Clara, California | date=2007-04-26 | access-date=2009-12-11 | publisher=The Conversations Network | url=http://itc.conversationsnetwork.org/shows/detail3298.html}}</ref>
| designer = [[Rasmus Lerdorf]]
| developer = The PHP Development Team, [[Zend Technologies]]
Baris 18:
| website = [https://www.php.net/ www.php.net]
}}
'''''PHP: Hypertext Preprocessor'''''<ref name="faq.general.acronym">{{Cite web |url=http://id2.php.net/manual/en/faq.general.php#faq.general.acronym |title=What does PHP stand for? |access-date=2010-10-11 |archive-date=2011-08-11 |archive-url=https://web.archive.org/web/20110811041315/http://id2.php.net/manual/en/faq.general.php#faq.general.acronym |dead-url=yes }}</ref> (sebelumnya disebut ''Personal Home Pages)'' PHP adalah bahasa skrip dengan funsifungsi umum yang terutama digunakan untuk [[pengembangan web]].<ref>{{Cite web|url=https://www.php.net/|title=PHP: Hypertext Preprocessor|website=www.php.net|access-date=2020-02-12}}</ref> Bahasa ini awalnya dibuat oleh programmer Denmark-Kanada [[Rasmus Lerdorf]] pada tahun 1994.<ref name="History of PHP">{{cite web|title=History of PHP|url=https://php.net/manual/en/history.php.php|website=php.net}}</ref> Implementasi referensi PHP sekarang diproduksi oleh The PHP Group.<ref name="about PHP">{{cite web|access-date=2008-02-25|url=https://www.php.net/history|title=History of PHP and related projects |publisher=The PHP Group}}</ref> PHP awalnya merupakan singkatan dari ''Personal Home Page'',<ref name="History of PHP" /> tetapi sekarang merupakan singkatan dari inisialisasi rekursif ''PHP: Hypertext Preprocessor''.<ref>[https://php.net/manual/en/preface.php PHP Manual: Preface], www.php.net.</ref>
 
Kode PHP biasanya diproses di peladen web oleh interpreter PHP yang diimplementasikan sebagai modul, daemon, atau sebagai ''Common Gateway Interface'' (CGI) yang bisa dijalankan. Di server web, hasil dari kode PHP yang ditafsirkan dan dieksekusi (dapat berupa semua jenis data, seperti HTML atau data gambar biner) akan membentuk keseluruhan atau sebagian dari respons HTTP. Berbagai sistem templat web, sistem manajemen konten web, dan kerangka kerja web ada yang dapat digunakan untuk mengatur atau memfasilitasi pembuatan respons itu. Selain itu, PHP dapat digunakan untuk banyak tugas pemrograman di luar konteks web, seperti aplikasi grafis mandiri<ref>{{cite web | url = https://php.net/manual/en/intro-whatcando.php | work = PHP Manual | title = Introduction: What can PHP do? | access-date = 2009-03-05}}</ref> dan kontrol drone robotik.<ref>{{Citation|title=helicopter: Port of node-ar-drone which allows user to control a Parrot AR Drone over PHP: jolicode/php-ar-drone|date=2019-01-11|url=https://github.com/jolicode/php-ar-drone|publisher=JoliCode|access-date=2019-02-23}}</ref> Kode PHP juga dapat langsung dieksekusi dari baris perintah.
Baris 40:
 
=== Pembatas ===
PHP hanya mengeksekusi kode yang ditulis dalam pembatas sebagaimana ditentukan oleh dasar sintaks PHP. Apapun di luar pembatas tidak diproses oleh PHP (meskipun teks PHP ini masih mengendalikan struktur yang dijelaskan dalam kode PHP. Pembatas yang paling umum adalah "<?php" untuk membuka dan "?>" Untuk menutup kode PHP.Tujuan dari pembatas ini adalah untuk memisahkan kode PHP dari kode di luar PHP, seperti [[HTML]], dan [[JavaScript]].
 
=== Variabel ===