Wednesday, July 16, 2008

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

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

[:] Setelah terinstall dengan baik
anda bisa mulai coba

>> script 1:
-----------------

-----------------

Nanti hasilnya: Selamat datang di dunia PHP

>> script 2 (Perkenalan Variabel $xx):
-----------------

-----------------
Nanti hasilnya: b_scorpio

>> script 3 (Perkenalan Function()):
-----------------

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
-----------------
www.farhanwahyudi.uni.cc";
?>
-----------------


[:] Permasalahan Dobel Quote

>> Script 5
-----------------
"specialH2">www.farhanwahyudi.uni.cc";
?>
-----------------


>> Script 6
-----------------
'specialH2'>www.farhanwahyudi.uni.cc";
?>
-----------------

0 comments em “Perkenalan dengan PHP”

Post a Comment

 

Indahnya Berbagi Copyright © 2012 Fast Loading -- Powered by Blogger