Pemrograman Web PTIIK Genap 2012/2013: OOP & MVC

Berikut ini adalah slide presentasi pada pertemuan 9 dan 10: Object Oriented Programming untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Slide presentasi dapat di-download pada link berikut ini: PW-05 Object Oriented Programming PW-06 PHP MVC (.pptx, 160kB) PW-06 PHP MVC (.pptx, 1.6MB)

Replace Multiple Backslash Character Using preg_replace() in PHP

It seems like an easy problem to solve, but It’s not as easy as it seems. Assuming I have this string in PHP: \\\super\\\\\\man\\\ and I would like to replace all the backslashes into space or other characters is not as easy as using str_replace() function. The number of backslashes may be 1 or more. But all consecutive need to be replace into ONE space.

Tugas Khusus Mata Kuliah Pemrograman Web Genap 2012/2013

Beirkut ini adalah NIM mahasiswa yang diharuskan untuk mengerjakan tugas khusus mata kuliah Pemrograman Web kelas: Sistem Informasi – A Sistem Informasi – B Informatika/Ilmu Komputer – A NIM mahasiswa yang dimaksud antara lain: 115060807111052 115061007111017 115060807111053 115061007111018 115060807111068 115061001111011 115061007111008 115060807111080 115060807111150 115061000111030 115060807111048 Tugas khusus yang diberikan adalah tugas perorangan. Adapun tugas khusus ini adalah: Implementasikan dalam bahasa pemrograman PHP untuk algoritma sorting berikut: Bubble Sort Quick Sort Continue reading Tugas Khusus Mata Kuliah Pemrograman Web Genap 2012/2013

Pemrograman Web PTIIK Genap 2012/2013: MySQL Database

Berikut ini adalah slide presentasi pada pertemuan 8: Database MySQL untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Slide presentasi dapat di-download pada link berikut ini: PW-03 Database Connection (.pptx, 77kB) PW-04 Database CRUD (.pptx, 86kB)

Tugas Mata Kuliah Pemrograman Web Selasa 16 April 2013

Perkuliahan mata kuliah Pemrograman Web untuk kelas SI-A dan SI-B hari Selasa 16 April 2013 pukul 7.00 dan pukul 14.30 diberikan tugas pengganti perkuliahan dikarenakan saya selaku dosen pengampu mata kuliah tersebut bertugas untuk menjadi Pengawas Satuan Pendidikan Ujian Nasional di SMK Muhammadiyah 1 Kepanjen. Adapun tugas pengganti untuk mata kuliah tersebut antara lain: Rancanglah sebuah tabel dengan jumlah minimal kolom 7, dimana salah satu kolom dalam tabel tersebut memiliki sebuah Continue reading Tugas Mata Kuliah Pemrograman Web Selasa 16 April 2013

Perfect Full Element Background Image With CSS3

An HTML element can have a background image. Normally we set it no-repeat, repeat-x, or repeat-y, regardless it is centered or x-y-positioned. There is time we may want it to be covered all over an element, regardless it’s size. Now, we can do this purely through CSS thanks to the background-size property now in CSS3. We’ll use the html element (better than body as it’s always at least the height Continue reading Perfect Full Element Background Image With CSS3

File Handling in PHP: Read/Write To And From Text File

As a simple data storage alternative to Database Management System (e.g. MySQL) in PHP we can use plain text file. For example, a plain text file to store page counter information. Below is an example on how to store a simple string (text) into a text (.txt) file: <?php $data = ‘some text’; $fp = fopen(‘counter.txt’, ‘w’); if($fp) { fwrite($fp, $data); fclose($fp); } ?> Assuming a file named counter.txt exists Continue reading File Handling in PHP: Read/Write To And From Text File

Pemrograman Web PTIIK Genap 2012/2013: PHP File and Directory Handling

Update 21 Maret 2013: Contoh penanganan data dari form pada file dapat di-download. Berikut ini adalah slide presentasi pada pertemuan IV: PHP File and Directory Handling untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Hal-hal yang dibahas dalam pertemuan keempat mata kuliah ini mencakup penjelasan mengenai: File Handling Open and Closing File FIle Open Modes Read Data Opening Continue reading Pemrograman Web PTIIK Genap 2012/2013: PHP File and Directory Handling

Pemrograman Web PTIIK Genap 2012/2013: PHP Fundamentals

Update 19 Mar 2013: PHP companion files untuk sub-materi Session dan Cookie dapat di-download. Berikut ini adalah slide presentasi pada pertemuan III: PHP Fundamentals and State untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Hal-hal yang dibahas dalam pertemuan kedua mata kuliah ini mencakup penjelasan mengenai: Apache web server administration and configuration, PHP, and why PHP? Sistem and software Continue reading Pemrograman Web PTIIK Genap 2012/2013: PHP Fundamentals