Développement d'applications Web avec PHP
Adresses derrière les liens
Quelques références en ligne
Écran 2
http://www.php.net/
http://www.php.net/
http://www.phptherightway.com/
http://www.phptherightway.com/
http://www.php-builder.com/
http://www.php-builder.com/
http://www.phpindex.com/
http://www.phpindex.com/
http://espacecourbeformation.com/fr/
http://espacecourbeformation.com/fr/
Exemples de gros progiciels
Écran 4
eZ Publish
http://ez.no/fr
TYPO3
http://www.typo3.com/
Drupal
http://drupal.org/
WordPress
http://wordpress.org
MediaWiki
http://www.mediawiki.org/wiki/MediaWiki
TikiWiki
https://tiki.org/tiki-index.php
SugarCRM
http://www.sugarcrm.com/
CiviCRM
https://civicrm.org/
Magento
http://www.magentocommerce.com/
Prestashop
https://www.prestashop.com/
WooCommerce
https://wordpress.org/plugins/woocommerce/
PhpBB
http://www.phpbb.com/
Comment insérer du script côté serveur
Écran 6
justification de la non fermeture de la déclaration
http://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag
Distributions toutes faites...
Écran 7
EasyPHP
http://www.easyphp.org
WampServer
http://www.wampserver.com/
Windows
http://bitnami.com/stack/wamp
MacOS
http://bitnami.com/stack/mamp
Linux
http://bitnami.com/stack/lamp
XAMPP
http://www.apachefriends.org/
Types de variables
Écran 12
http://ca.php.net/manual/en/language.types.php :
http://ca.php.net/manual/en/language.types.php
Chaînes de caractères
Écran 14
http://ca3.php.net/manual/en/language.types.string.php
http://ca3.php.net/manual/en/language.types.string.php
http://ca.php.net/print
http://ca.php.net/print
Notion de vide
Écran 20
ses subtilités
http://ca.php.net/manual/fr/function.unset.php
Opérateurs
Écran 22
http://ca3.php.net/manual/en/language.operators.php#language.operators.precedence
http://ca3.php.net/manual/en/language.operators.php#language.operators.precedence
Exemple de boucle
Écran 30
Smarty
http://www.smarty.net/
phpTAL
http://phptal.org/
phptemplate dans Drupal
https://www.drupal.org/project/phptemplate
Twig
http://twig.sensiolabs.org/
Fonctions
Écran 31
suggestions de types scalaires dans la définition des paramètres et un type de retour
http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
Étendue des variables
Écran 34
http://ca3.php.net/manual/en/language.variables.scope.php
http://ca3.php.net/manual/en/language.variables.scope.php
Variables externes explicites
Écran 38
http://ca3.php.net/manual/fr/reserved.variables.php
http://ca3.php.net/manual/fr/reserved.variables.php
Exercice : formulaire de saisie
Écran 41
http://fr.wikipedia.org/wiki/XSS
http://fr.wikipedia.org/wiki/XSS
XSS attacks examples
http://www.thegeekstuff.com/2012/02/xss-attack-examples/
Variables d'environnement (suite)
Écran 44
http://ca3.php.net/manual/fr/reserved.variables.server.php
http://ca3.php.net/manual/fr/reserved.variables.server.php
http://fr.wikipedia.org/wiki/Variables_d%27environnement_CGI
http://fr.wikipedia.org/wiki/Variables_d%27environnement_CGI
Tableaux
Écran 48
documentation sur les tableaux PHP (arrays)
http://php.net/manual/fr/language.types.array.php
Tableaux PHP et variables multivaluées d'un formulaire
Écran 58
How to POST an associative array in PHP
http://stackoverflow.com/questions/14050812/how-to-post-an-associative-array-in-php
Quelques autres fonctions de tableaux
Écran 61
liste des fonctions disponibles pour les tableaux
http://ca1.php.net/manual/fr/book.array.php
PHP et UTF-8
Écran 64
Data Encoding: A Guide to UTF-8 for PHP and MySQL
https://www.toptal.com/php/a-utf-8-primer-for-php-and-mysql
Exemple de format
Écran 66
sprintf (et printf) ne sont pas compatibles avec le multi-octets
http://stackoverflow.com/questions/16003505/php-sprintf-with-foreign-characters
Expressions régulières
Écran 67
http://www.regular-expressions.info/
http://www.regular-expressions.info/
Opérations avec les expressions régulières
Écran 68
différence entre les deux familles
http://ca3.php.net/manual/fr/reference.pcre.pattern.posix.php
Banalisation pour le SQL
Écran 69
http://ca3.php.net/magic_quotes
http://ca3.php.net/magic_quotes
Banalisation pour le HTML et les URL
Écran 70
différence entre urlencode et rawurlencode
http://stackoverflow.com/questions/996139/urlencode-vs-rawurlencode
Forger un lien mailto: avec des paramètres
http://www.espacecourbeformation.com/fr/articles/lien-mailto-avec-parametres/
Traitement de la date
Écran 73
Datetime
http://php.net/manual/en/class.datetime.php
Pour contrer les différences de systèmes d'exploitation pour setlocale()
Écran 74
http://ca3.php.net/manual/en/function.setlocale.php
http://ca3.php.net/manual/en/function.setlocale.php
Pilotes disponibles
Écran 78
liste complète des pilotes de bases de données
http://php.net/manual/en/refs.database.php
MySQL
Écran 80
http://www.mysql.com/
http://www.mysql.com/
Principales fonctions pour MySQL en PHP avec l'interface mysqli
Écran 87
http://ca3.php.net/manual/en/security.database.sql-injection.php
http://ca3.php.net/manual/en/security.database.sql-injection.php
Principales fonctions pour MySQL en PHP avec l'interface mysqli (suite)
Écran 88
http://www.php.net/manual/fr/mysqli.summary.php
http://www.php.net/manual/fr/mysqli.summary.php
mysqli_prepare() et mysqli_stmt_execute()
http://php.net/manual/fr/mysqli.prepare.php
PDO : instructions utiles
Écran 95
http://ca3.php.net/manual/en/book.pdo.php
http://ca3.php.net/manual/en/book.pdo.php
erreurs avec la communication avec la base de données
http://www.php.net/manual/fr/pdo.error-handling.php
Tous droits réservés 2017, Espace Courbe Formation inc. —8 janvier 2017 — 15:12:53