Académique Documents
Professionnel Documents
Culture Documents
01 - Introduction À PHP - PPSX
01 - Introduction À PHP - PPSX
Introduction PHP
OUALI MOHAMED
Plan
Prsentation
Introduction
PHP
Installation
de lenvironnement de travail
Le tiers
client
Le ct client
Le tiers du
milieu
(Middle tier)
Le tiers
ressources
(EIS)
Le ct serveur
Le tiers
ressource
(EIS)
Le tiers
web
Le tiers du
milieu
Web Services
Le ct client
Le ct serveur
PHP
PHP
PHP
PHP
Hypertext Preprocessor
Produit
open source
PHP est un langage imbriqu dans le code HTML,
Il est interprt par un module spcial par le serveur
web.
Fonctionnalits de PHP
Traitement
de caractres et de fichiers.
Protocoles du web : HTTP, FTP, SNMP, IMAP, etc.
Support de XML.
Accs aux bases de donnes : Oracle, Sybase, MySQL,
ODBC, etc.
Offre des fonctions de gnrations de graphique en ligne,
de document PDF, etc.
Offre galement le support de session HTTP.
Etc, etc, etc
PHP, Apache
On
Apache et MySQL.
PHP
(il
Le trio
Le serveur Web
http://apache.org/
APACHE
Le Serveur BD
http://www.mysql.com/
Le langage
http://www.php.net
PHP
MySQL
Fonctionnement
APACHE
Renvoie de la rponse
(HTML)
PHP
MySQL
Fonctionnement
10
http://www.isetb.rnu.tn/index.html
http://www.isetb.rnu.
tn/
CLIENT
APACHE
PHP
index.ht
ml
MySQL
login.php
Fonctionnement
11
http://www.isetb.rnu.tn/login.php
http://www.isetb.rnu.
tn/
CLIENT
APACHE
login.php
PHP
Le code php
napparait pas ici
index.ht
ml
MySQL
login.php
Installation de lenvironnement
Configurer le tout
Package WAMP
Package LAMP
12
13
<html>
<body>
<h1>Mon premier script</h1>
<?php
echo "Bonjour";
?>
</body>
</html>
14
<html>
<body>
<h1>Mon premier script</h1>
<?php
include information.php
?>
</body>
</html>
Fichier principal
<?php
$chaine="salut Cest PHP" ;
echo $chaine;
?>
15
On passe la pratique