php mysql training : module 2
DESCRIPTION
Obtaining, Installing and Configuring PHP Obtaining PHP Source Code Installing PHP from Binary Packages Dynamic Extensions, Checking Install with phpinfo() Function.TRANSCRIPT
![Page 2: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/2.jpg)
Recap from Module-1
● Client Server Model● HTML / XHTML● Request – Replies and Protocols● Overview of PHP's capabilities● Why Use PHP (10 Reasons to use PHP)● PHP Vs JS
![Page 3: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/3.jpg)
Agenda
● Open Source Concepts● Obtaining, Installing and Configuring PHP● Obtaining PHP Source Code● Installing PHP from Binary Packages● Dynamic Extensions, Checking Install with
phpinfo() Function.
![Page 4: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/4.jpg)
Just before we begin
● Inventor of PHP
Rasmus Lerdorf
![Page 5: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/5.jpg)
PHP Facts:
● According to a survery of 47,173,415 domains,15,205,474 had PHP installed.
![Page 6: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/6.jpg)
Lets get back!
● Open Source Poll
How many of you would give away your piece of software to a person for FREE without charging anything, absolutely NOTHING?
![Page 7: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/7.jpg)
About Open Source
● Richard Stallman Story● Unix / Linux Systems● Freeware VS Free software
![Page 8: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/8.jpg)
Why Open Source
● Give it free for Students/ Researchers/ IT people for growth of knowledge base and form a community
● Corporates are anyway going to pay● Separate levels of Licenses. GNU GPL,
LGPL etc.● PHP's License is called PHP license
![Page 9: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/9.jpg)
How to get PHP
● Various Means of obtaining PHP● 1) Internet
● www.php.net● 2) Software bundled packages
● WAMP, XAMPP● 3) Linux/Unix Distros
● Fedora, CentOS, Ubuntu● 4) Utilities CDs with magazines
● Pcmags etc
![Page 10: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/10.jpg)
Before that...
● What do you need to start a website:
● A Web server● PHP Parser● Configurations
![Page 11: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/11.jpg)
Before that...
● What do you need to start a website:
● A Web server – Apache, 85% of the Internet runs on Apache.
● PHP Parser – PHP Preprocessor● Configurations – PHP.INI, HTTPD.CONF
![Page 12: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/12.jpg)
Some know how of PHP
● Latest version : PHP 5.X.X● Official Website: www.php.net● Official Help: PHP Manual
● http://www.php.net/manual/en/● Official Download Page:
● http://www.php.net/downloads.php
![Page 13: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/13.jpg)
PHP Download Page
![Page 14: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/14.jpg)
PHP Structure
![Page 15: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/15.jpg)
3rd Party Tools
● Two most popular bundles:
● WAMP: Windows, Apache, MySQL & PHP● XAMPP: Apache Friends
![Page 16: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/16.jpg)
WAMP
● Obtain from:● www.wampserver.com
● For Windows only● Excellent for Starting
up and advance simple usage
![Page 17: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/17.jpg)
XAMPP
● Download from:● http://www.apachefri
ends.org● Very High end.● Not for starters,
but yes for pros● Linux and Windows
both
![Page 18: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/18.jpg)
Installation of WAMP- Demo
![Page 19: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/19.jpg)
PHP Extensions
● What are they? ● They are Addons on PHP● They add extra features to PHP Parsers.● Example: Creating A PDF, Creating an Image● Most famous is : PEAR (We'll do it later) and
Zend Engines - We wont do this :(
![Page 20: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/20.jpg)
Some PHP Extensions
![Page 21: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/21.jpg)
Summary
● We discussed :● Open Source and its Philosophy● PHP and important Links● Obtained PHP from various places ● Installing PHP● Installing 3rd Party bundled kit.● PHP extensions
![Page 22: PHP MySQL Training : Module 2](https://reader033.vdocument.in/reader033/viewer/2022052900/5563a743d8b42a01658b55e9/html5/thumbnails/22.jpg)
Next on Schedule:
● Hello World Program in PHP● PHP Tags and Embedding HTML● Simple PHP Script examples● PHP and HTTP Environment Variables.
See you tomorrow :)