PHP and MySQL by Example COMP268-800YL Professor Mattos.

5
PHP and MySQL by Example COMP268-800YL Professor Mattos

Transcript of PHP and MySQL by Example COMP268-800YL Professor Mattos.

Page 1: PHP and MySQL by Example COMP268-800YL Professor Mattos.

PHP and MySQL by Example

COMP268-800YLProfessor Mattos

Page 2: PHP and MySQL by Example COMP268-800YL Professor Mattos.

Chapter 1 - Introduction

• From Static to Dynamic WebSite• Process of creating dynamic Web sites

“Old Way” – Common Gateway InterfaceBrowser - (http) - Server – (CGI) – Perl Script – DataBase

“New Way” – PHP embedded in Web PageBrowser – (http) – Server/(PHP) – DataBase

• Open source -> makes software source code freely available with limited restrictions.

Page 3: PHP and MySQL by Example COMP268-800YL Professor Mattos.

PHP – Hypertext Preprocessor

PHP – Personal Home Page• PHP -> simple, fast, portable scripting language well

suited for database-enable Web sites• Official site: http://www.php.net

Introductory TutorialOnline Manual

Current Version 5.5.3 (supplied with book -> 5.1.6)

Page 4: PHP and MySQL by Example COMP268-800YL Professor Mattos.

MySQL

• MySQL -> Open source Relational DataBase Management System

• Fast, reliable and easy to use• Official site: http://www.mysql.com• Current version 5.6.13 (supplied with the book

-> 5.0.24a)

Page 5: PHP and MySQL by Example COMP268-800YL Professor Mattos.

Advantages of MySQL and PHP

• High Performance• Built-in Libraries• Extensibility• Relatively Low Cost• Portability• Developer Community• Ease of Learning