SlideServe
Menu
Préférences
© SlideServe · v2026

Introduction to PHP and MySQL in Internet Programming Practicum

treva avatar
11 diapositives · 292 Views · Jul 26, 2014

This module covers the fundamentals of Internet Programming with a focus on PHP and MySQL. Taught by Lecturer Kurniawan, S.Kom., M.M., students will learn about PHP as a server-side scripting language, its compatibility with various platforms, and how to set up a web server using Apache or XAMPP. The module also introduces the basics of MySQL as a database server, its functionalities, and integration with PHP for web applications. By the end of the practicum, students will have practical skills in developing dynamic websites.

Introduction to PHP and MySQL in Internet Programming Practicum - slide 1
01 / 11Introduction to PHP and MySQL in Internet Programming Practicum
1 / 17

Télécharger la présentation

Introduction to PHP and MySQL in Internet Programming Practicum
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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