1
Introduction
- WEB architecture : HTTP, CGI, interactivity : client script or server script.
- What is PHP ?
- PHP review.
- Differences between PHP 4 and PHP 5.
- Presentation of the example used during the course : the Ecommerce web-site.
Exercise
Review of the main HTML tags and of cascading style sheets. Introduction to cascading style sheets.
2
First Web applications in PHP
- Principles of the server-client.
- First language elements.
- Integrating PHP into an HTML page.
- Variables and functions.
- The libraries.
- Basic functions, server and PHP variables.
- Server variable and PHP variable.
- Control of flows and loops.
- Transition and transmission of variables.
- Reading/writing of file.
- Login and password check.
- The redirection.
- Complex variables, tables.
- Array ; Functions linked to tables ; Extraction functions ; Navigation functions in a table.
Exercise
Completion of personalized functions. Completion of a library of function. Completion of a function creating a drop-down/scrollable list.
3
Managing user sessions
- Persistent variables : Cookies and Sessions.
- Pros and cons of Cookies and Sessions.
- Limits and precautions.
- Session variables. Functions linked to session variables.
- The Cookies.
- Serialization of complex variables.
- Use of MySQL data-base : Presentation of MySQL.
- Basic concepts : bases, tables, fields, recordings.
- MySQL basis.
- The tables and the fields.
- The recordings.
- MySQL PHP functions.
- Introduction to the SQL language (selection, modification, deletion) ; Processing of query results.
Exercise
Elaborate a simple shopping basket, in cookie and session version. Managing quantities ordered
4
A professional Web application
- Advanced selection functions : search and sorting.
- Graphics in PHP.
- Presentation of the GD library.
- Imaging and re-use.
- Managing typeface and writing in image mode.
- Superposing texts so that rights are protected.
- Integrating into web-site.
- Elaborate statistical graphs.
- Integration of completed modules.
Exercise
Create a search engine : the selection on Author, Title and Hero gives a list of links on the corresponding product sheets . Multilayer implementation. Integrating the different completed modules. Display of images with the copyright notice.