Web Programming (WP

)

Web Programming (WP)
romi@romisatriawahono.net http://romisatriawahono.net YM: romi_sw
1

Romi Satria Wahono
Lahir di Madiun, 2 Oktober 1974 SD Sompok Semarang (1987) SMPN 8 Semarang (1990) SMA Taruna Nusantara, Magelang (1993) Nusantara, S1, S2 da S3 (on-leave) da Department of Computer , dan (on- a dari pa p Sciences, Saitama University, Japan (1994-2004) University, (1994Core Competence: Software Engineering, eLearning Engineering, System, Knowledge Management PNS di Lembaga Ilmu Pengetahuan Indonesia Founder dan Koordinator IlmuKomputer.Com CEO PT Brainmatics Cipta Informatika
2

Romi Satria Wahono

Mata Kuliah WP - Kontrak
Pertemuan di Kelas:
Kuliah model tutoring, konsep diberikan dan langsung tutoring, praktek dilakukan Ketidakhadiran diperbolehkan, hanya tidak akan ada diperbolehkan, pengulangan bahasan bagi yang tidak hadir

Mata Kuliah WP - Materi
1.

Web and PHP Concepts
Web Programming Concepts Mengenal PHP Instalasi PHP, MySQL, Apache

2.

PHP Fundamentals
Tipe Data, Variable, Operator Pernyataan Kontrol P t K t l Array Fungsi

Penilaian Mata Kuliah:
Nilai Total dari TM - UTS – UAS Tugas harus diupload di University.RomiSatriaWahono.Net

Modul Kuliah dan Pengiriman Tugas:
eLearning System: http://university.romisatriawahono.net Course Name: Web Programming Enrolment Key: wp
3 4

3.

PHP Function Libraries
Fungsi Berhubungan dengan Variabel, Konstanta, Tipe Data Fungsi Berhubungan dengan String Fungsi Berhubungan dengan Waktu Fungsi Berhubungan dengan File

Mata Kuliah WP - Materi
4.
1. 2. 3.

PHP and Database Integration
Cookies Manajemen Sesi File Upload

Web and PHP Concepts

5.

ObjectObject-Oriented Programming with PHP

5

6

http://romisatriawahono.net

romi@romisatriawahono.net

Running on the server (Server Side Script) on Script) 2.net . dsb) adalah web client Web browser mengirimkan permintaan suatu file kepada Web server (apache. CGI (Common Gateway Interface) ASP (Active Server Pages . Running on the client (Client Side Script) on Script) JavaScript: source code in the web page Web Client tampilkan respon 9 Web Server 2. 1. 3. xitami.Web Programming (WP) Web Programming Concepts Web Server dan Web Client Web browser (IE. 1. 3.MS) PHP (Cross-platform scripting language) (Cross- 10 Client Side Script 1. Firefox.net romi@romisatriawahono. Client Side Script permintaan Client meminta suatu halaman (file) Server mengiriman halaman (file) yang diminta Client memahami halaman (file) tersebut dan menjalankannya sebagai sebuah d l k b b h program Web Client jalankan script respon Web Server 11 12 http://romisatriawahono. 2. etc) Web server memberikan respon dengan mengirimkan file yang diminta Web browser menampilkan file sesuai dengan kode (hypertext) yang terdapat pada file tersebut 7 8 Mekanisme Kerja Client-Server Clientpermintaan Ragam Script Berbasis Web 1.

php. Server Side Script permintaan Client meminta suatu halaman (file) Server menjalankan (eksekusi)script yang ada pada halaman (file) yang diminta Server mengirimkan hasil eksekusi script ke client l t Client menampilkan hasil eksekusi Web Client tampilkan hasil respon Web Server jalankan script 13 14 Apa Itu PHP? PHP? Mengenal PHP PHP singkatan dari: PHP: Hypertext PHP: Preprocessor ServerServer-side script script HTMLHTML-embedded CrossCross-platform Resource: Resource: http://www. 3.net romi@romisatriawahono.mysql.net 15 16 PHP Script Embedding PHP in HTML <html> <body> <strong>Hello World!</strong><br /> World!</strong><br <?php <?php echo ‘My name is Romi!’.net . 4.Web Programming (WP) Server Side Script 1. 2. ?> </body> </html> Apa Itu MySQL? MySQL? MySQL kepanjangan dari My Structured Query Language Relational Database Management System Common SQL Statements INSERT SELECT UPDATE DELETE PHP tag styles: Diawali dengan <?php <?php Ditutup dengan ?> DBMS opensource yang sering digunakan untuk pemrograman PHP Resource: Resource: http://www.com 18 17 http://romisatriawahono. Romi!’.

PHP Coder.Solaris. FrontBase. The PHP code is enclosed in special start and end tags that allow you to jump into and out of "PHP mode" mode" Why is PHP used? 2. UX. InterBase. Caudium.php 24 <% %> http://romisatriawahono. MySQL.0.Linux). The parser then executes all of the code it finds until it runs into a PHP closing tag.IBM DB2. Mac OSX. One of the strongest features is the wide range of supported databases <html> <head> <title>Example</title> </head> <body> <?php <?php ?> </body> </html> 19 20 echo "Hi. Oracle (OCI7 and OCI8).OpenBSD.Web Programming (WP) Why is PHP used? 1. dBase. Windows NT/98/2000/XP/2003 • Supported Databases: Adabas D. Netscape Enterprise Server • O Operating S t ti Systems: UNIX (HP(HPUX.net romi@romisatriawahono. PostgreSQL. Cross Platform Runs on almost any Web server on several operating systems. Notepad 21 PHPBB2 VBulletin Wordpress cPanel Drupal Coppermine WebCalendar MyPHPNuke PHPWebSite TikiWiki Typo3 Xaraya b2Evolution bBlog Serendipity VBPortal TextPattern OSCommerce OSCNuke 22 Zen Cart eGroupWare phpGroupWare Site@School SugarCRM Getting Started 1.Unix dbm Why is PHP used? 3. best if used when FrontPage is the HTML editor Not recommended. Microsoft IIS. Getting Started 2. Cost Benefits PHP is free. mSQL.4 23 <script language="php"> ?> test. Simple HTML Page with PHP <html><head> <title>My First PHP Page</title> </head> <body> dy <?php <?php echo "Hello World!".OpenBSD. (readIngres. Easy to Use Code is embedded into HTML.Linux). jEdit. MSMySQL. dBase. ASP tags support was added in 3. Informix. Caudium. ?> Starting tag <?php <? Ending tag ?> ?> Notes Preferred method as it allows the use of PHP with XHTML Not recommended. SQLite. Direct MS-SQL. Hyperwave. jEdit. Easier to type. Sybase.Empress. Application Ecosystem PHP-Nuke PostNuke Joomla Mambo ATutor Moodle PHP Software Platform Development Tools Free Free (Linux) Free Emacs.Empress. I'm a PHP script!". Ovrimos. FrontBase. TextPad. InterBase. Open source code means that the entire PHP community will contribute towards bug fixes. ?> </body></html> <?php <?php echo “Hello World”. ODBC. Ovrimos. Solid. Velocis. How to escape from HTML and enter PHP mode PHP parses a file by looking for one of the special tags that tells it to start interpreting the text as PHP code.Solaris.net . but has to be enabled and may conflict with XML Always available. There are several add-on addtechnologies (libraries) for PHP that are also free Why is PHP used? 4. SQLite. PostgreSQL. mSQL. • Web Servers: Apache. FilePro (read-only).

4. Notepad++) Jalankan program atau script PHP dengan web browser (IE.apachefriends.org/en/xampphttp://www. XAMPPLite atau Appserv untuk instalasi ketiganya dengan lebih cepat dan terpadu Jalankan program yang telah diinstal Buat program atau script PHP dengan text editor (TextPad.Web Programming (WP) How to Run a PHP Program Instalasi Apache. 2 3. PHP dan MySQL atau gunakan software semacam XAMPP.html AppServ: XAMPP and XAMPPLite: Instalasi XAMPP -1- http://www. XAMPP.net .apachefriends. PHP dan MySQL 1.org/en/xamppwindows.net romi@romisatriawahono.appservnetwork.com htt // t k 27 28 Instalasi XAMPP -2- Instalasi XAMPP -3- 29 30 http://romisatriawahono. Instal Apache Web Server. Firefox) 25 26 Download Software http://www. 2.

Penerbit Andi. MySQL/PHP Database Applications. 4. Edition. 2006 PHP. 2. 2007 Jay Greenspan and Brad Bulger. Abdul Kadir. Kevin Tatroe. O ill . 2008 Revisi. 2008 MySQL M SQL.Web Programming (WP) XAMPP Control and Management Server is Up! 31 32 Referensi 1. 2001 Applications. 33 http://romisatriawahono. Oreilly. Janet Valade. Programming PHP. Wiley Publishing.net . 5. PHP & MySQL for Dummies 3rd Edition. 2006 Rasmus Lerdorf.net romi@romisatriawahono. Oreilly. Dasar Pemrograman Web Dinamis Menggunakan PHP Edisi Revisi. Peter MacIntyre. 3. & MySQL. M&T Books. 6. Head First PHP Morrison. Lynn Beighley and Michael Morrison. Oreilly Learning PHP and MySQL 2nd Edition.