PHP and MySQL

nostalgicisolatedΛογισμικό & κατασκευή λογ/κού

4 Νοε 2013 (πριν από 3 χρόνια και 9 μήνες)

87 εμφανίσεις

PHP and MySQL

Week#1


Course Plan.


Introduction to Dynamic Web Content.


Setting Up Development Server

Eng. Mohamed Ahmed Black

1

Introduction to Dynamic Web Content

HTTP 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.

2

Introduction to Dynamic Web Content

Request/Response Procedure

3

PHP MySQL Request/Response
Procedure

4

Dynamic Web Components


PHP.


MySQL.


JavaScript.


Ajax.


And Webserver

5

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.


P
rovides
more

flexibility

than HTML alone.


PHP:
Personal Home Page Tools.


PHP:
PHP Hypertext Preprocessor.


PHP versions:
1, 2, 3, 4,
5
(now in use)

6

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.



7

Setting Up Development Server

Environment
:


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.


8

Setting Up Development Server

What 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).


9

Let Us Set a Development
Environment

And Test it.