obamabush

Obama Will Change Busf Policy

U.S. President Barack Obama will change several numbers of controversial policies by President George W. Bush, including the restriction of the parent embryo cell research [...]
beyone

Beyone Will Never Sell Her Wedding Photo

Beyonce said, she will never consider to sells her wedding photo with Jay-Z to a celebrity magazine that offering a large amount of money as rewards, even she wonder with the amount of money that offered to her [...]
Guns N 'Roses

Guns N 'Roses Will Back

After 15 years not releasing album, the group rock Guns N ' Roses will launch a new album in the United States on 23 November. The band's latest album is "The Spaghetti Incident", released in 1993 [...]
ipod

new kampus anggrek BINUS UNIVERSITY

wah...wah...wah conratulation deh binus ku tercinta dengan pembagunan kampus anggrek yang baru,kayaknya makin keren aja tuh gedung ...[...]

Perkenalan dengan PHP

Dunia internet berkembang begitu cepat, dari web statis berkembang menjadi web dinamis.
Dunia PHP adalah salah satu dunia pemrograman internet, yang menjalankan web dinamis

[:]Anda membutuhkan Server Console.

Pilih salah satu:
1. PHPTriad, cari di google.com keyword: download phptriad
2. XAMPP (Lebih Proffesional), cari di google.com keyword: download XAMPP, atau klik link ini : XAMPP | Apache Friends | Alternatif WebServer PHP

Jika kesulitan menemukan program diatas, email saya: black.scorpio.night@gmail.com
Baca aturan pakainya...lanjutkan sendiri mudah kok...

[:] Setelah terinstall dengan baik
anda bisa mulai coba

>> script 1:
-----------------
<?
echo "Selamat datang di dunia PHP";
?>
-----------------

Nanti hasilnya: Selamat datang di dunia PHP

>> script 2 (Perkenalan Variabel $xx):
-----------------
<?
$nama = b_scorpio;
echo $nama;
?>
-----------------
Nanti hasilnya: b_scorpio

>> script 3 (Perkenalan Function()):
-----------------
<?
function birthday() {
    $age = 20;
}

birthday();

echo $age;
?>
-----------------
Nanti hasilnya: 20

Sampai di sini anda mungkin sudah ahli, jadi ya saya loncati saja...


[:] Perkenalan PHP super globals

Tabelnya:

 

 

 

$GLOBALS

Contains any global variables that are accessible for the local script. The variable names are used to select which part of the array to access.

$_SERVER

Contains information about the web server environment.

$_GET

Contains information from GET requests (a form submission).

$_POST

Contains information from POST requests (another type of form submission).

$_COOKIE

Contains inform from HTTP cookies.

$_FILES

Contains information from POST file uploads.

$_ENV

Contains information about the environment (Windows or Mac).

$_REQUEST

Contains information from user inputs. These values should not be trusted.

$_SESSION

Contains information from any variables registered in a session.

*penting !!:
Kedepannya anda akan sering berhadapan dengan PHP super globals.

>> Script 4
-----------------
<?php
$my_string = "b_scorpio";
echo "Belajar PHP dengan $my_string di www.ilmuwebsite.com";
?>
-----------------


[:] Permasalahan Dobel Quote

>> Script 5
-----------------
<?php
// ini tidak bisa bekerja karena ada Dobel Quote pada tag HTML
echo "<h2 class="specialH2">www.ilmuwebsite.com</h2>";
?>
-----------------


>> Script 6
-----------------
<?php
// Dobel Quote dapat diatasi dengan menggantinya dengan Single Quote
echo "<h2 class='specialH2'>www.ilmuwebsite.com</h2>";
?>
-----------------


Sumber dari situs Ilmu Website dalam kategori php kuliah dengan judul Perkenalan dengan PHP

FILM/MUSIK

kesehatan