Goals
- Knowing how to develop Web sites and applications with PHP, in particular using MySQL databases
- Understanding the different methods of context management and implementing sessions and cookies
- Knowing how to handle any files in PHP
Program
Operating principles
The Web context
Variables
Data types at a glance
Operators
Conditional statements
A particular type: arrays
Loops, browsing arrays
Sort arrays in alphabetical order
Introduction to superglobals
Retrieving form data
Send an e-mail
Constants
Case study: online application system
Declaration of functions
Parameters and the return statement
Creation of function libraries
Predefined functions: examples, organization, documentation
Functions for arrays, mathematics, strings, dates
Other examples of functions
How to identify the types of variables?
Uploading files: the $ _FILES variable and associated functions
Case study: improving the online application system
Principles of interaction with the user
Form reminders
Hidden fields
Long URLs
Introduction to sessions
Secure access to the administration of applications with sessions
Presentation of cookies
Display the date of the last access to the platform administration of applications
Usefulness of databases
Presentation of PHPMyAdmin
Building a database with PHPMyAdmin
SQL under PHPMyAdmin:
– The main instructions
– Reading SQL code
– Generation of multiple queries
– Good habits: testing your queries with PHPMyAdmin
Functions for accessing the databases data
Formulation of requests in a PHP file
Specifications and organization of development
Creation of HTML code generation libraries (without connection to databases)
Generation of pages from libraries
Creation of the database
Function for inserting pages and storage in the MySQL database
Function for modifying pages
Page deletion function
Modification of the HTML code generation libraries to link them to the database
Open a file
Close a file
Read the contents of a file
Read the contents of a file by line
Write in a file
Modification of the creation of pages to associate a file generated on the fly
Creation of an author database
Introduction to the relationship of tables in MySQL 5
Development of the add author function
Modification of the creation of pages to associate a author
Display functions for pages created by an author
Authentication of the authors on the administration
Storage of the authentication in session variables
Site and database design
Introduction to image manipulation: dynamically resizing an image
Organization of the catalog consultation interface by themes
Saving the shopping cart on a cookie
Classic and thematic search engine and pagination of results (depending on the remaining time)
* Website content management tool
Passing of the certification (if foreseen in the financing).
Duration
5 days
Price
£ 1850
Audience
All
Prerequisites
Knowledge of HTML
Reference
PHP82-F
Sessions
Contact us for more informations about session date