Pengantar Teknologi Web 5 Server-side Technologies.

Slides:



Advertisements
Presentasi serupa
INTRO (TO BPOS). What is BPOS? Apakah BPOS itu? •BPOS = (Microsoft) Business Productivity Online Suite (Service) •adalah sebuah layanan online Microsoft,
Advertisements

Array.
INTRO TO BPOS ( Coffey’s Project Portal). What is BPOS? Apakah BPOS itu? •BPOS = (Microsoft) Business Productivity Online Suite (Service) •adalah sebuah.
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation. All.
PENGENALAN INTERNET M. Masrur, SKom.
PEMOGRAMAN BERBASIS JARINGAN
KONSEP DASAR WEB DAN INTERNET
Hypertext & Hypermedia
Aplikasi dan Pemrograman Jaringan
Process to Process Delivery
Slide 3-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercises Apa saja komponen utama.
Teknologi Open Source (pertemuan 3) Open Source vs Free Software oleh Razief Perucha F.A D3-Manajemen Informatika Jurusan Matematika – FMIPA Universitas.
+ ADMINISTRASI LAYANAN Teknik Informatika Universitas Bunda Mulia Jakarta Indra Priyandono.
Database Create-Retrieve-Update-Delete (CRUD)
PENGENALAN PL/SQL.
Ilmu Komputer, FMIPA UGM
PROSES PADA WINDOWS Pratikum SO. Introduksi Proses 1.Program yang sedang dalam keadaan dieksekusi. 2.Unit kerja terkecil yang secara individu memiliki.
Could not load an object because it is not avaliable on this machine. Tidak dapat memuat sebuah benda karena tidak tersedia pada mesin ini.
Oracle Developer/2000. Developer/2000 Products FormsReportsGraphics.
KULIAH X FIREWALL KOM Keamanan Jaringan 2012/2013 KOM Keamanan Jaringan 2012/2013.
MEMORY Bhakti Yudho Suprapto,MT. berfungsi untuk memuat program dan juga sebagai tempat untuk menampung hasil proses bersifat volatile yang berarti bahwa.
Basisdata Pertanian. After completing this lesson, you should be able to do the following Identify the available group functions Describe the use of group.
Array.
Array
2nd MEETING Assignment 4A “Exploring Grids” Assignment 4 B “Redesign Grids” Create several alternatives grid sysytem using the provided elements: (min.
Selamat Datang Peserta Workshop
Pertemuan Ke-1 (Konsep Dasar Web)
LOGO Manajemen Data Berdasarkan Komputer dengan Sistem Database.
Isnardi,M.Kom Ikhsan, S.Kom, M.Kom Novinaldi, S.Kom
Linked List dan Double Linked List
Definisi VLAN Pemisahan jaringan secara logis yang dilakukan pada switch Pada tradisional switch, dalam satu switch menunjukkan satu segmentasi LAN.
BASH – Shell Programming Guide Erick, Joan © Sekolah Tinggi Teknik Surabaya 1.
CRUD 3 STMIK AKAKOM 2014 Yii Framework
Operator dan Assignment Pertemuan 3 Pemrograman Berbasis Obyek Oleh Tita Karlita.
© 2009 Fakultas Teknologi Informasi Universitas Budi Luhur Jl. Ciledug Raya Petukangan Utara Jakarta Selatan Website:
Pemrograman Web – PHP 1 Antonius RC © Server side PHP merupakan salah bahasa pemrograman yang berjalan pada sisi server – Dapat menggenerate HTML!
1 PENGANTAR APLIKASI KOMPUTER Haryoso Wicaksono, S.Si. MICROSOFT WINDOWS #2.
Lazarus? Lazarus is a free cross-platform visual integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal.
SISTEM TERDISTRIBUSI (SILABUS dan Introduction to Distributed Systems)
Web Teknologi I (MKB511C) Minggu 12 Page 1 MINGGU 12 Web Teknologi I (MKB511C) Pokok Bahasan: – Text processing perl-compatible regular expression/PCRE.
Lecture 2 Introduction to C# - Object Oriented Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Pemrograman Internet Mobile 7 PHP: Hypertext Preprocessors.
PHP.
Web Server dan konfigurasi web server
Pertemuan I By : Syaifullah ( )
Modul- 8 Pengantar PHP (1)
As’ad Djamalilleil Variabel & Konstanta As’ad Djamalilleil
Pengantar Teknologi Mobile PHP Antonius Rachmat C, S.Kom PHP: Hypertext Preprocessors.
Keamanan Web Server Pertemuan XI.
Pengenalan HTML Pertemuan 1 IT133 Pengembangan Web Frederik Samuel Papilaya.
Pemrograman Web Dasar-dasar PHP:  Pengantar PHP sebuah file PHP, PHP workings, PHP feathers, menjalankan PHP.  Sintaks Dasar PHP variable, operator,
1. Pengenalan Internet Pengertian dan sejarah internet
Dasar-Dasar PHP.
Pengenalan Web Server dan Server Side Script
PHP Yusuf Nurrachman.
Dasar-dasar Pemrograman PHP
Pertemuan 1 Pengenalan Dasar Web.
Keamanan Web Server Pertemuan XI.
Pemrograman Web II Ganjil
AJAX (Asynchronous Javascript And XML)
Internet Programming PHP
Lutfi Budi Ilmawan Univ. Muslim Indonesia
PENGENALAN HTML, PHP, CSS & MySQL
AJAX Teguh S.
PHP( web Dasar) By : Lisda Juliana P.,SSi..
PEMROGRAMAN WEB 1 PERTEMUAN 1
Pengenalan PHP, Variabel & Operator
PEMROGRAMAN WEB II.
PHP (Personal Home Page tools)
Web server.
Transcript presentasi:

Pengantar Teknologi Web 5 Server-side Technologies

Server side technologies Hardware: –Server Software: –Web server –Server side Programming Tools –Utility Programming Tools –Database Server

Komponen Web

Mapping URL Sistem Web

Web Server vs Web Application Web Application: –Menggunakan bahasa Pemprograman(misal ASP, PHP, Java,.Net, Perl atau.NET) Web Server: –Melayani permintaan client dan meneruskan ke aplikasi yang sesuai selanjutnya diproses oleh aplikasi yang sesuai (misal IIS, Apache, thttpd dll.) Web Application tidak bisa jalan tanpa Web Server Web Server bisa bekerja tanpa Web Application (Tapi hanya bisa melayani web dengan content statis)

Web Server Web Server: apache, xitami, PWS, IIS Biasanya diinstall bersama dengan PHP dan MySQL => ApacheTriad –Aplikasi free, ukuran cukup besar –Tidak perlu konfigurasi Hanya perlu user & password apache dan MySQL Bisa diinstall di Linux (XAMPP) dan Windows (WAMPP)

mpp-windows.html

File konfigurasi Web Server httpd.conf srm.conf access.conf Juga perlu setting: –Virtual Host

Httpd.conf ServerType – berdiri sendiri / manual inetd. ServerRoot – directory konfigurasi. PidFile – nomor proses ID ResourceConfig / AccessConfig TimeOut – batas waktu time out. KeepAlive – simultan koneksi dari satu IP. MaxKeepAliveRequest – max. keep alive. KeepAliveTimeOut

Httpd.conf MinSpareServers & MaxSpareServers – jumlah server untuk server farm. StartServers – server di jalankan. MaxClients – jmlh koneksi simultan di server. MaxRequestsPerChild BindAddress – IP yang di tempelkan. Port – port yang di dengar Apache. User & Group – owner dari Apache Web. ServerAdmin – admin Web server.

httpd.conf ServerName – nama server. ErrorLog LogLevel – level emerg, alert, crit, errors. CustomLog – catat akses client & virtual host. ServerSignature – dikirim saat file tidak ada. UserCanonicalName HostnameLookups – catat hostname akses.

srm.conf DocumentRoot – directory root HTML. UserDir – public_html, DirectoryIndex – index file. FancyIndexing AccessFileName -.htaccess Alias – alias directory khusus, cgi-bin DefaultType – Default tipe dokumen

access.conf Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks AllowOverride None Allow from all

Virtual Host – IP based DocumentRoot /path/to/document ServerName

Virtual Host – name based NameVirtualHost DocumentRoot /path/to/document1 ServerName DocumentRoot /path/to/document2 ServerName

Susunan directory bin  file-file program build cgi-bin  script cgi conf  tempat konfigurasi error  error message htdocs  dokumen yang akan dipublish icons  gambar-gambar kecil include lib logs man  manual pages manual  dokumentasi modules  module

Server side programming Bahasa: PHP, ASP classic, ColdFusion, ASP.NET, JSP / JSF, Ruby on Rails PHP: PHP Hypertext Preprocessors Gratis dari Mirip dengan bhs Java dan C Bhs scripting yg paling populer Rasmus Lerdorf, Andi Gutmans, Zeev Suraski

How PHP works? User mengetikkan suatu alamat: – Dilakukan DNS – Routing Diterima oleh web server (mis: Apache) Karena merupakan script PHP, maka isi script PHP diparsing dan diproses oleh interpreter php, dan dikembalikan dalam bentuk teks HTML Teks HTML dikembalikan ke user dan ditampilkan di browser

Why is PHP used? 1.Easy to Use Code is embedded into HTML. The PHP code is enclosed in special start and end tags that allow you to jump into and out of "PHP mode". Example

Why is PHP used? 2.Cross Platform Runs on almost any Web server on several operating systems. One of the strongest features is the wide range of supported databases Web Servers: Apache, Microsoft IIS, Caudium, Netscape Enterprise Server Operating Systems: UNIX (HP-UX,OpenBSD,Solaris,Linux), Mac OSX, Windows NT/98/2000/XP/2003 Supported Databases: Adabas D, dBase,Empress, FilePro (read- only), Hyperwave,IBM DB2, Informix, Ingres, InterBase, FrontBase, mSQL, Direct MS-SQL, MySQL, ODBC, Oracle (OCI7 and OCI8), Ovrimos, PostgreSQL, SQLite, Solid, Sybase, Velocis,Unix dbm

Why is PHP used? 3.Cost Benefits PHP is free. Open source code means that the entire PHP community will contribute towards bug fixes. There are several add-on technologies (libraries) for PHP that are also free. PHP SoftwareFree PlatformFree (Linux) Development ToolsFree PHP CoderPHP Coder, jEditjEdit

Dukungan PHP GD (GIF, JPEG, PNG) SNMP IMAP (POP, NNTP) FTP XML parser PDF generation DCOM (Win32 only) SWF (Flash) zlib (compressed IO) Charset/text conversion (UTF-8, Cyrillic, Hebrew) SOAP Cybercash ASPELL/PSPELL

Arsitektur PHP 4

PHP Script

PHP syntax

Komentar Tanda //,digunakan untuk komentar satu baris Tanda /* dan */, digunakan untuk mengawali dan mengakhiri komentar Tanda #, digunakan untuk komentar satu baris

Tipe data Tipe Skalar: –boolean –integer –floating-point number (float) –string Tipe Compound: –array –object Tipe Special: –NULL Tipe Boolean: –TRUE / FALSE

Tipe Data Numerik Numerik Bulat Desimal (base-10) Oktal (base-8, diawali 0 [nol]) Hexadesimal (base-16, diawali 0x [nol x]) Lebar 32 bit

Tipe Data Float Angka Desimal Lebar 64 bit Maksimum ~1.8e308 Presisi 14

Tipe String Gabungan Karakter Single Quote Double Quote Heredoc Syntax

Konstanta <? define(“USERNAME”,”Antonie”); echo “User Name :”.USERNAME; ?>

Deklarasi Variabel

Konversi String ke Angka Contoh: –$a = 1 + “10.5”; –$a = 1 + “-1.3e3”; –$a = 1 + “bob-1.3e3”; –$a = 1 + “bob3”; –$a = 1 + “10 ayam kate”; –$a = 1 + “10.2 ayam kate”; –$a = “10.0 ayam” + 1;

Operator Arithmetic (+, -, *, /) Concatenation (.) Assigment(+=, -=, /=, *=, %=,.=) Comparison (==, !=, >, =, <=) Logical (||, &&, !)

If syntax

Switch

while

for

break

continue

array

Custom Array Contoh pembuatan array dengan custom key <?php // This array is the same as... array(5 => 43, 32, 56, "b" => 12); //...this array array(5 => 43, 6 => 32, 7 => 56, "b" => 12); ?> Size of array is not defined If you add a new element the maximum of the integer indices is taken, and the new key will be that maximum value + 1

While-list

Foreach (1) <?php $arr = array("one", "two", "three"); reset($arr); while (list($key, $value) = each ($arr)) { echo "Key: $key; Value: $value \n"; } foreach ($arr as $key => $value) { echo "Key: $key; Value: $value \n"; } ?>

Foreach (2) <?php $arr = array("one", "two", "three"); reset ($arr); while (list(, $value) = each ($arr)) { echo "Value: $value \n"; } foreach ($arr as $value) { echo "Value: $value \n"; } ?>

Fungsi-fungsi dalam array

Contoh <? //explodeimplode.php $city[0]="Jogja"; $city[1]="Bandung"; $city[3]="Surabaya"; $strgabung = implode("-",$city); echo "Stlh digabung: ".$strgabung." "; $cityarray = explode("-",$strgabung); foreach ($cityarray as $key=>$value){ echo "Array ke-".$key." = ".$value." "; } ?>

NULL NULL menyatakan variabel yang tidak ada nilainya Sebuah variabel NULL, jika –Dinyatakan sebagai NULL dengan opertor = –Belum pernah diberikan suatu nilai literal –Telah di unset() Untuk mengecek apakah variabel NULL atau tidak, dapat digunakan fungsi is_null()

Unset dan Bracket

function

Array global $_GET[“varname”] $_POST[“varname”] $_SESSION[“varname”] $_COOKIE[“varname”] $_REQUEST[“varname”] $_FILES[“varname”]

Session session_start() //dipaling atas session_register( ) session_unregister( if (session_is_registered( )) unset( ) session_destroy()

File upload If(copy(source, destination))

SERVER variable $_SERVER is an array containing information such as –Headers –Paths –Script locations The entries in this array are created by the webserver. There is no guarantee that every webserver will provide any of these; servers may omit some, or provide others

contoh

Server Variable 'argv' –Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string. 'argc' –Contains the number of command line parameters passed to the script (if run on the command line).

SERVER variable 'REMOTE_ADDR' –The IP address from which the user is viewing the current page. 'REMOTE_HOST' –The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user. 'REMOTE_PORT' –The port being used on the user's machine to communicate with the web server. $_COOKIE –An associative array of variables passed to the current script via HTTP cookies. Automatically global in any scope. $_POST –An associative array of variables passed to the current script via the HTTP POST method.

NEXT