Perkenalan dengan PHP

June 17, 2008

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

Entry Filed under: belajar, komputer. Tags: , , , , , , , , , , , , , , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


 

June 2008
M T W T F S S
    Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

add url

blog teman

Blogroll

Discussion Forum

Download Link

link

news

undangan

Top Clicks

Recent Comments

edofaqeeh on Antara Jempol, SMS dan En…
edofaqeeh on Belajar – Permodelan Geo…
fathur on Belajar – Permodelan Geo…
edofaqeeh on Masalah Login
zulfikar on Masalah Login

Spam Blocked

stat counter

counter create hit
Bookmark and Share

Powered by FeedBurner

Subscribe to RSS headline updates from:
Powered by FeedBurner

guestbook

Sign my Guestbook from Bravenet.com 
Get your Free Guestbook from Bravenet.com

technorati

Technorati search this blog all blogs
Ask questions, get answers, and share tips at  linkbuilding forum.

blog tutorial

info lowongan kerja

Info Lowongan Kerja
Lowongan Kerja Indonesia

yuk ngeblog

Yuk.Ngeblog.web.id

blog indonesia

flagcounter

free counters

feedjit-recent visitors

clustermaps

Tags

antivirus application apply Autorun cara menampilkan file database disembunyikan duplikasi exe facebook file file asli file disembunyikan file hilang files flashdisk folder folder options gratis hidden hidden file hidden files hidden folder hide indonesia kapasitas komputer laptop malam matematika mati media penyimpanan media simpan microsoft ms.word operating system protected sains sembunyi ufd usb Virus virus komputer windows windows explorer
Internet Sehat

Free Relevant Link Exchange

Sign up now for a high quality relevant link exchanges.

Aku untuk Negeriku, Bugiakso Blog Competition 2009
Amfibi Web Search & Directory
Solidaritas untuk anak Indonesia

samsung hope

the bobs

Pages

Archives

Meta

edo

SocialVibe