Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to PHP and MySQL – Creating Database-Driven Websites

Similar presentations


Presentation on theme: "Introduction to PHP and MySQL – Creating Database-Driven Websites"— Presentation transcript:

1 Introduction to PHP and MySQL – Creating Database-Driven Websites

2 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP is an open-source server-side scripting language used for the creation of dynamic web pages for e-commerce and other web based applications. It is also one of the most popular server-side languages commercially used today. With consistent fast performance, high reliability and ease of use, MySQL has become the open-source database of choice for many organisations. Together, these two technologies provide you with a simple, free and powerful platform for building dynamic, database-driven web applications.

3 Introduction to PHP and MySQL – Creating Database-Driven Websites
This hands-on practical course is designed to enable web developers and others with limited programming experience to build dynamic e-commerce websites using the PHP programming language and MySQL database. An understanding of basic HTML/XHTML is assumed.

4 Introduction to PHP and MySQL – Creating Database-Driven Websites
Understanding PHP Basics Introducing PHP Using Variables and Operators Controlling Program Flow Working with Arrays Using Functions and Classes

5 Introduction to PHP and MySQL – Creating Database-Driven Websites
Understanding MySQL Basics Relational Database Design Structured Query Language Data Manipulation Language Simple and Advanced SQL Queries MySQL Administration Tools Creating a Content Management System

6 Introduction to PHP and MySQL – Creating Database-Driven Websites
Working with Data from Other Sources Working with Files and Directories Working with XML Working with Cookies, Sessions and Headers

7 Introduction to PHP and MySQL – Creating Database-Driven Websites
Security and Troubleshooting Handling Errors Securing PHP Extending PHP

8 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP Hypertext Preprocessor (recursive acronym) In use in over 20 million websites and over a third of the world’s Web servers Developed by a worldwide community of volunteers and freely available at no cost Developed by Rasmus Lerdorf 1994 – called PHP/FI Further improved by Andi Gutmans and Zeev Suraski – PHP 3.0

9 Introduction to PHP and MySQL – Creating Database-Driven Websites
2008 – ‘Netcraft’ survey showed PHP in use on over 30 million websites We are using PHP 5.3xxx Latest version is PHP 6.0

10 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP – Unique Features Performance – fast execution of scripts Portability – available for UNIX, MS Windows, Mac OS and OS/2 – and portable between platforms Ease of Use – “Simplicity is the ultimate sophistication” plus exhaustive documentation Open Source (like MySQL) – Any developer, anywhere, can inspect the code tree, spot errors and suggest possible fixes. The result is a stable, robust product where bugs are rapidly resolved.

11 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP – Unique Features Community Support – The results of which include the libraries of extensions - PEAR (PHP Extension and Application Repository) and PECL (PHP Extension Community Library) Third-Party Application Support – Support for a wide range of databases – including MySQL, PostgreSQL, Oracle, Microsoft SQL Server. XML support And it doesn’t stop there…..GIF, JPEG, PNG formats, SMTP, IMAP, POP3, SOAP and REST protocols. PHP can even manipulate PDF documents!!

12 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP – Client-Server Framework

13 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP – Development Environment Base operating system (OS) and server environment – Linux, Windows Web server (usually Apache on Linux or IIS on Windows) PHP interpreter to parse and execute PHP code – and return results to the web server Database engine (for example, MySQL) PHP is executed on the server cf. client/browser-side scripting – and only the output is sent to the browser Thus the code is completely independent of browser quirks!!

14 Introduction to PHP and MySQL – Creating Database-Driven Websites
PHP – Sample Applications phpMyAdmin ( = A PHP-based administration tool for MySQL phpBB ( = PHP-bases online bulletin board Gallery ( = PHP-based digital photo archive PoMMo ( = mass mailing application Smarty ( = PHP-based framework of templates for separating business logic from user imterface Wordpress ( = Weblog publishing tool Squirrelmail, eZ Publish, Mantis……..

15 Introduction to PHP and MySQL – Creating Database-Driven Websites
View phpinfo() on the web server host we will be using (

16 Introduction to PHP and MySQL – Creating Database-Driven Websites


Download ppt "Introduction to PHP and MySQL – Creating Database-Driven Websites"

Similar presentations


Ads by Google