1 / 15

Programming 1 PHP

Programming 1 PHP. Material. Ebook PHP in 10 Minutes – Chris Newman – Sams Teach Yourself PHP4 in 24 Hours - Sams Dasar Pemrograman Web Dinamis menggunakan PHP – Abdul Kadir – Andi Offset. PHP. Server Side Scripting

lavi
Download Presentation

Programming 1 PHP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming 1PHP

  2. Material • Ebook • PHP in 10 Minutes – Chris Newman – Sams • Teach Yourself PHP4 in 24 Hours - Sams • DasarPemrograman Web Dinamismenggunakan PHP – Abdul Kadir – Andi Offset

  3. PHP • Server Side Scripting • Installed more than 244 million website and 2.1 million web server • Invented by RasmusLerdorf in 1995 • PHP Personal Home Page  PHP: Hypertext Preprocessor Source: wikipedia.org/wiki/PHP

  4. Server Side Scripting • Executed by server • Example Cold Fusion, Perl, ASP (Active Server Page), ASP.NET, JAVA, VB Script

  5. Client Side Scripting • Executed by client • Example Java Script, Ajax, Jquery, Actionscript

  6. Prerequisite • HMTL • CSS • Java Script

  7. How to use • Install on local computer • Wamp • Xampp • Appserv • …… • Install on server (Linux or Windows) • Manual http://www.php.net/manual/en/

  8. Hello world <?php echo “Hello World – PHP” ; print “Hello World”; ?>

  9. Fungsi date <?php echo date(“j F Y”); //show the calendar ?> <?php echo “date(“H i s”)”; //show the time ?> Buat web sederhana yang berisiinformasitanggaldan jam.

  10. Comment • Giving command on php script. Is it important, why? /* comment 1 comment 2 */ //Formula for counting tax. Edited 10/12/12

  11. Variable • Boolean • Integer • Double or Float • String *Variable on PHP is Case Sensitive

  12. Variabel (cont’) $angka = 1; $nama = “YagusCahyadi”; ------------------------------------- Example. $name = “Kelas SI”; echo “Hi Mahasiswa,”; echo $name; Output. Hi Mahasiswa, Kelas SI

  13. Expression $a = 10; $b = 40; $tambah = $a + $b; echo $tambah; Output. ?

  14. Expression (cont’) $my_age = 29; $vicky = “my_age”; echo “ Vicky bilangkalau $vicky is {$my_age}”; Output. Vicky bilangkalaumy_age is 29

  15. Exercise 1 • Buatlah program untukoperasi string. • Buatlah program untukoperasiangka. *asumsitidakperlumemasukkan input *dibuatdalam 1 page/halaman.

More Related