1 / 11

Internet Programming Practicum

Lecturers : Kurniawan, S.Kom., M.M. Module 6. Internet Programming Practicum. Credits : 4 Information System Study Program. PHP. Lecturers : Kurniawan, S.Kom., M.M. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP

treva
Download Presentation

Internet Programming Practicum

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. Lecturers : Kurniawan, S.Kom., M.M. Module 6 Internet Programming Practicum Credits : 4 Information System Study Program Internet Programming Practicum

  2. PHP Lecturers : Kurniawan, S.Kom., M.M. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and use Internet Programming Practicum

  3. Lecturers : Kurniawan, S.Kom., M.M. What is a PHP File? • PHP files can contain text, HTML tags and scripts • PHP files are returned to the browser as plain HTML • PHP files have a file extension of ".php", ".php3", or ".phtml" Internet Programming Practicum

  4. Lecturers : Kurniawan, S.Kom., M.M. What is MySQL? • MySQL is a database server • MySQL is ideal for both small and large applications • MySQL supports standard SQL • MySQL compiles on a number of platforms • MySQL is free to download and use PHP + MySQL • PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform) Internet Programming Practicum

  5. Lecturers : Kurniawan, S.Kom., M.M. Why PHP? • PHP runs on different platforms (Windows, Linux, Unix, etc.) • PHP is compatible with almost all servers used today (Apache, IIS, etc.) • PHP is FREE to download from the official PHP resource: www.php.net • PHP is easy to learn and runs efficiently on the server side Where to Start? • To get access to a web server with PHP support, you can: • Install Apache (or IIS) on your own server, install PHP, and MySQL • Or find a web hosting plan with PHP and MySQL support Internet Programming Practicum

  6. Lecturers : Kurniawan, S.Kom., M.M. Web server with PHPTRIAD: ---------------------------- 1. Click Start 2. Click All Program 3. Click PhpTriad a. apache -> start apache b. Mysql -> mysql-D-NT 4. Open Windows Internet Explorer or Mozilla 5. Write URL in address IE http://localhost/ DocumentRoot : c:\apache\ Internet Programming Practicum

  7. Lecturers : Kurniawan, S.Kom., M.M. Web server with XAMPP Control panel: a. Web server (apache) - Running b. Web database (mysql) - running DocumentRoot : c:\xampp\ Internet Programming Practicum

  8. Lecturers : Kurniawan, S.Kom., M.M. In c:\apache\htdocs\ or c:\xampp\htdocs • Make new Folder: NimAnda • Write URL in address IE http://localhost/NimAnda Internet Programming Practicum

  9. Lecturers : Kurniawan, S.Kom., M.M. PHP Syntax <?php ?> • Example: • <html> • <body> • <?php • echo "Hello World"; • ?> • </body> • </html> Internet Programming Practicum

  10. Lecturers : Kurniawan, S.Kom., M.M. Comments in PHP In PHP, we use // to make a single-line comment or /* and */ to make a large comment block. <html> <body> <?php //This is a comment /* This is a comment block */ ?> </body> </html> Internet Programming Practicum

  11. Exercise 6 (location.php) Lecturers : Kurniawan, S.Kom., M.M. Internet Programming Practicum

More Related