PHP

PHP: Hypertext Preprocessor) is a computer scripting language, originally designed for producing dynamic web pages. It is mainly used in server-side scripting, but can be used from a command line interface or in standalone graphical applications.

While PHP was originally created by Rasmus Lerdorf in 1995, the main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification. Released under the PHP License, the Free Software Foundation considers it to be free software.

PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It generally runs on a web server, taking PHP code as its input and creating web pages as output. It can be deployed on most web servers and on almost every operating system and platform free of charge.[5] PHP is installed on more than 20 million websites and 1 million servers, although the number of websites with PHP installed has declined since August 2005.It is also the most popular Apache module among computers using Apache as a web server.The most recent major release of PHP was version 5.2.6 on May 1, 2008.

PHP & MySQL - belajar php : "Fungsi/Method"

Sunday, March 15, 2009 ·

PHP & MySQL - Kali Ini akan "belajar php" mengenai Koding "Fungsi/Method". FUngsi, atau method diparadigma objek, adalah blok kode yg dapat di depinisikan kemudian di pangil (di-invoke) dai bagian lain program . Belajar php mesti pelan-pelan, apalagi mengenai "Fungsi/Method". Tahap balajr php ini merupakan tahap dasar yang perlu di mengerti dan dio pahami, guna untuk pengembangan kedepan.

Sebagai pemrogram, kita bisa menganalisa, kapan mesti mengunakan fungsi. contoh nya, untuk kode-kode php yang smaa dan sering digunakan, nah pastinya ini akan mempermudah anda untuk membuat koding. Tapi mungkin ini sulit yang baru pertama untuk belajar php.

/* Mendapatkan Jam dari system dengan format 0-23 */
$time = date("G");
if ($time <12) {
$say = 'Good morning ..';
}elseif ($time < 17 ){
$say = 'Good Afternoon ..';
}else
{
$say = 'Good evening ..';
}

echo $say;
Para pembaca blog "belajar php" kode diatas jika diperlukan kembali akan ditulis lagi, dan ditulis lagi. Agar lebih efisien, maka kode php diatas sebaiknya di pakai "Fungsi/Method" PHP.

function greeting($tNow){
if(!$tNow) return '';
if(!$tNow < 12 ) return 'Good Morning..';
if(!$tNow < 17 ) return 'Good afternoon..';
if(!$tNow >17 ) return 'Good evening..';

}
//memanggil fungsi strlen
echo getLength('Hello');

Site Sponsors

About this blog

Selamat datang Di Blog PHP & MYSQL
Blog ini akan membahas tentang PHP manual, Tutorial PHP, TIPS & TRIKS PHP, Keamanan Code-PHP, Function PHP, Class PHP...

Blog ini juga membahas dasar-dasar Belajar PHP , belajar basis data atau database MySql, memanipulasi data MySql, script untup convert Mysql to Text, convert text to MySql dengan PHP, report dengan PDF, report dengan Excel, dan Aplikasi Barcode dengan PHP, dan beberapa contoh-contoh script yang bisa di implementasikan....

XML

The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax.
Adsense Indonesia

REQUEST TUTORIAL PHP