250 likes | 970 Views
PHP and MySQL. Eng. Mohamed Ahmed Black. Week#1 Course Plan. Introduction to Dynamic Web Content. Setting Up Development Server. Introduction to Dynamic Web Content HTTP and HTML:.
E N D
PHP and MySQL Eng. Mohamed Ahmed Black Week#1 Course Plan. Introduction to Dynamic Web Content. Setting Up Development Server
Introduction to Dynamic Web ContentHTTP and HTML: • HTTP is the communication standard that governs requests and responses taking place between Web Clients and Web Servers. • Server/ Client use the Internet to send information. • Webserver can handle more than one request at a time. • And it keeps listening all the time.
Introduction to Dynamic Web ContentRequest/Response Procedure
Dynamic Web Components • PHP. • MySQL. • JavaScript. • Ajax. • And Webserver
So, What Is PHP? • Server-side, Scripting Language. • Scripting language runs in response to some event. • Is interpreted not compiled, so code is not Binary. • Is designed for use with HTML. • Provides moreflexibility than HTML alone. • PHP: Personal Home Page Tools. • PHP: PHP Hypertext Preprocessor. • PHP versions: 1, 2, 3, 4, 5 (now in use)
Why Use PHP? • Open Source / Free software. • Cross Platform to Develop and to Deploy. • Web Development Specific. • Powerful, Robust and Scalable. • Object Oriented (Version5). • Rich Documentation: www.php.net/docs.php • Large Active Community. • Community examples: Joomla, Wordpress, Phpvb.
Setting Up Development ServerEnvironment: • WAMP: Windows Apache MySQL PHP. • LAMP: Linux Apache MySQL PHP. • MAMP: Mac Apache MySQL PHP. • You can install each component individually. • Or can get one package containing all the components.
Setting Up Development ServerWhat you need? • Webserver (Apache 2.2.17). • PHP (5.3.5). • Database (MySQL 5.5.8). • Text Editor (Notepad++, Editra or Komodo). • Web Browser (Firefox). Let Us Set a Development Environment And Test it.