Développement web

100 documents à télécharger gratuitement

Cours, examens, TD, TP et exercices de développement web. Thèmes couverts : HTML, CSS, JavaScript, PHP, React, frontend, backend.

Symfony et les fondamentaux HTTP

This document dives into the fundamentals of HTTP, detailing HTTP methods like GET, POST, PUT, and DELETE, and their integration with Symfony for web applications. It explains how Symfony handles HTTP requests and responses using the Request and Response objects, illustrating topics like routing, controllers, sessions, and templates using Twig. The document also covers the architecture and organization of Symfony projects, alongside an in-depth explanation of building, displaying, and validating forms in Symfony.

HTTP methods
Symfony
Twig
64p0
Symfony3: Préparation de l'environnement

This document provides a detailed step-by-step guide for setting up Symfony 3 in a Windows environment. It outlines the prerequisites, such as installing the WAMP stack and an IDE like NetBeans, configuration steps like setting PHP as an internal command, and downloading the Symfony installer. Further, it includes specific instructions for configuring NetBeans to support Symfony 3 and adapting the Symfony 2 plugin for compatibility with the newer version. The document concludes with a walkthrough to create and manage Symfony projects within NetBeans effectively.

Ahmed Zaki JENHANI
Symfony3
WAMP
5p0
Symfony3: Activities and Development Tutorials

This document provides a step-by-step guide to working with Symfony3, starting with template design and routing, including calculation of parameters via URL. It progresses to building a bundle, creating forms for entities such as students and teachers, and managing CRUD operations using Doctrine's ORM. Finally, it explains database integration, from configuration to table creation, to ensure full functionality of the web application.

Symfony3
base.html.twig
CRUD
Institut Supérieur des Études Technologiques12p0
Symfony3: Développement

This document provides a hands-on guide to Symfony3 by introducing activities that progressively build skills from templating to CRUD operations. It begins with templating basics, teaching users to render variables and design reusable templates, followed by creating routes and actions for tasks such as greeting users and summing integers. Later sections cover complex operations, like entity creation, database integration, and managing forms or CRUD for entities such as students and instructors. Each activity includes implementation instructions and real-world use cases.

Ahmed Zaki JENHANI
Symfony3
CRUD
Institut Supérieur des Études Technologiques12p0
The Quick Tour (Symfony 3.0)

This document introduces Symfony 3.0, a robust PHP web development framework. It explains the core concepts such as controllers, actions, routing, and templates, emphasizing a modular approach to managing code. The guide uses practical examples—like mapping user requests to resources and rendering templates with Twig—to walk readers through basic framework operations. Additionally, it outlines the distinction between development and production environments to optimize application performance and debugging.

Symfony
Twig
Routing
28p0
Développement Web

This document comprehensively covers foundational and advanced concepts in web development. It begins with static web development, including HTML, CSS, JavaScript, and AJAX, and progresses to dynamic web development utilizing PHP and Object-Oriented PHP. Key methodologies like the MVC model, DOM manipulation, and event handling are detailed, along with essential JavaScript objects such as Strings, Dates, Arrays, and Numbers. Finally, it introduces AJAX, its asynchronous functionality, and its integration with modern technologies to create rich user interfaces.

JavaScript
AJAX
MVC model
59p0
Mémento des expressions régulières

This document serves as a quick reference for developers working with regular expressions (regex) in PHP. It provides concise explanations of regex structures, character classes, quantifiers, and meta-characters, as well as how to execute searches, matches, and replacements using PHP functions like preg_match and preg_replace. Key topics include regex delimiters, quantifier usage, and advanced features like capturing groups and PCRE-specific options such as case insensitivity and ungreadiness. The document aims to synthesize essential regex functionalities for efficient coding practice.

regular expressions
preg_match
preg_replace
6p0
PDO: comprendre et corriger les erreurs les plus fréquentes

This document introduces PDO, a PHP-based database abstraction layer, guiding readers through common errors and their corrections. It focuses on essential Object-Oriented Programming (OOP) terminology and standard practices for configuring PDO, debugging SQL execution issues, and enhancing code security using prepared statements. The article emphasizes understanding errors instead of memorizing patterns and explores error-handling options such as exceptions and warnings.

PDO
PHP::ERRMODE_WARNING
Object-Oriented Programming (OOP)
12p0
Transmettre des données avec les formulaires

This document introduces the usage of forms in web development to interact with users and exchange data. It explains the integration of HTML for creating form elements and PHP for processing the submitted data. Two primary methods, GET and POST, are discussed, with POST being emphasized for larger and unseen data submissions. It covers form components like text inputs, checkboxes, radio buttons, dropdowns, and hidden fields while providing examples of creating and processing dynamic forms.

forms
HTML
PHP
21p0
Développement Web

This document offers a comprehensive overview of the PHP programming language and related tools within the context of web development. It covers both static and dynamic web approaches, detailing PHP's object-oriented functionalities, debugging practices, database integration (PDO), and the MVC model. The document provides practical examples and guidelines on PHP syntax, data manipulation, database interactions, and session management, emphasizing its use for creating dynamic websites.

PHP
PDO (PHP Data Objects)
MVC model
60p0
Alertify.js - Browser dialogs never looked so good

Alertify.js is a lightweight JavaScript library enabling customizable browser dialogs and unobtrusive notifications. The project, maintained by Fabien Doiron until 2015, offers features like customizable themes through CSS, cross-device compatibility, and a simple API for implementing dialog boxes like alerts, confirmations, and prompts. Fabien announced the end of maintenance, advising the community to fork and decide the library's future. Example usage, properties management, and setup guidelines are detailed within the documentation.

JavaScript
alertify.js
browser dialogs
6p0
ATELIER FRAMEWORK COTE CLIENT - DIS2

The document outlines an assignment requiring students to select a jQuery plugin of their choice, prepare a presentation to explain its usage, and implement a real-world example using the chosen plugin. The task emphasizes practical engagement with jQuery plugins to explore their functionalities. The aim is to enhance understanding and skills in utilizing web development tools. This work is attributed to Mohamed Ouali from ISET de Bizerte for the academic year 2015-2016.

jQuery plugin
web development
framework
Institut Supérieur des Études Technologiques1p0
Le langage HTML

This document provides an introductory guide to HTML, focusing on its structure, elements, and attributes. It explains fundamental HTML concepts such as tags, formatting techniques, image and link insertion, and the creation of tables and forms. Practical examples and exercises are included to reinforce learning, alongside formatting options and best practices for HTML page writing. The material is tailored for beginner-level web programming education.

HTML
<table>
Hypertext Markup Language
Institut Supérieur des Études Technologiques58p0
Introduction au Développement Web

This document serves as an introduction to web development. It begins with an explanation of the internet's history and structure, discusses the evolution of the web from static Web 1.0 to semantic Web 3.0 and anticipates Web 4.0. It outlines the fundamental technologies and protocols like HTTP, HTML, and URL that enable the web, as well as approaches for creating websites, including server-client models. Key principles for creating web projects, such as specification, planning, and graphical design, are also detailed.

Web Development
HTML
HTTP
Institut Supérieur des Études Technologiques63p0
Les sessions

This document introduces PHP sessions, covering session management and data handling. It demonstrates initializing sessions using the session_start() function and storing user data like name and login credentials in the $_SESSION variable. Practical code examples show how to set session variables and retrieve them for output. The functionality is illustrated with a case involving user information storage and retrieval.

PHP sessions
session_start()
$_SESSION
3p0
fetch ()

The document demonstrates the retrieval and manipulation of data from a database table named 'personne' using PHP and SQL queries. Queries include retrieving all columns, specific columns (e.g., 'NCIN', 'NOM', 'PRENOM'), and filtering data based on certain conditions (e.g., AGE >= 40). The examples showcase the use of $bdd->query for executing SQL commands and iterating over the result set using $reponse->fetch(). The presentation provides examples with sample input and output, emphasizing the structure and logic of database operations.

Database Query
SQL
PHP
6p0
Série 4 : PHP – Les fonctions [Nov 2015]

This document consists of seven programming exercises focused on PHP functions. The tasks include mathematical calculations, string manipulation, array processing, and form handling. Additional exercises involve JavaScript alert integration, HTML form creation, and testing for input validation. Solutions require the application of PHP built-in functions like `empty()`, `isset()`, and session management techniques.

PHP
functions
mathematical formula
Institut Supérieur des Études Technologiques2p0
Working with Files in PHP

This article introduces concepts and functions for working with files in PHP. It covers file attributes such as size, permissions, and timestamps, along with how to read, write, and manipulate files. Examples demonstrate handling file streams, reading data line-by-line, writing to files, and managing CSV files in PHP. The tutorial emphasizes file manipulation best practices while providing code snippets for various use cases.

file manipulation
fopen
fwrite
10p0
Développement côté serveur - Travail à la maison

This document describes a homework assignment focused on server-side development. The task involves creating a web page with a form that includes a file upload input. Students are required to write PHP scripts to handle the file upload, save the file on the server, and log details such as file name, type, size, and upload date in a log file. The practical exercise aims to demonstrate form handling and server-side scripting skills.

file upload
PHP script
LogFichiersReçus.txt
Institut Supérieur des Études Technologiques1p0
jQuery Introduction and Usage

This document provides an overview of jQuery, a lightweight JavaScript library created by John Resig in 2006. It simplifies DOM manipulation, event handling, and AJAX requests using syntax inspired by CSS selectors. The presentation covers installation, setup, and provides practical examples for common jQuery functionalities like traversing the DOM, chaining actions, and applying interactive effects. Additionally, advanced manipulation techniques and event handling are explained through coding examples.

jQuery
John Resig
DOM manipulation
26p0
Web Development Workshop

The document includes two exercises focused on programming solutions for displaying data in tabular formats. The first exercise explores iterative methods (using for and foreach loops) to create a column-based month display with respective colors. The second exercise involves using a single array and a foreach loop to display weekdays in French and English. The solutions emphasize programming fundamentals and the application of control structures in web development.

Web Development
for loop
foreach loop
Institut Supérieur des Études Technologiques6p0
PHP: Hypertext Preprocessor Guide

This document offers an introduction to PHP as a server-side scripting language used to create dynamic web pages. It details PHP's history, from its origins in 1994 by Rasmus Lerdorf to its evolution into a widely adopted language with significant contributions from Andi Gutmans and Zeev Suraski. Core features include its integration with web servers, database support, and syntax for embedding within HTML. Additionally, the document delves into PHP variables, operators, constants, and functionality like mathematical operations, random number generation, and formatting.

PHP
Zend Engine
Hypertext Preprocessor
18p0
TD1 - Notions de base

This document introduces the foundational concepts of PHP through step-by-step exercises. It addresses variable naming conventions, reference assignment, predefined variables, typecasting, and boolean evaluations in PHP scripts. The exercises emphasize practical coding techniques and the interpretation of outputs for key language features. Authors Houcem Hedhly and Mohamed Ouali focus on ensuring a hands-on understanding for learners.

PHP
variable naming
type casting
4p0
Série 2 : PHP – Les structures

This document presents a series of eight programming exercises focusing on PHP structures, conditional expressions, random number generation, string manipulation, and arrays. It challenges the students to implement conditional logic for complex scenarios, use loops to iterate numerical operations, manipulate strings for transformations and character-based operations, and apply functions for data validation and censorship. The content emphasizes practical coding applications, enhancing problem-solving in server-side development.

PHP
strlen()
conditional expressions
Institut Supérieur des Études Technologiques1p0

Autres ressources en développement web