Short video - Variables d'environnement $_SERVER et getenv

21 Jan 2023 · 2 min
2:16

In this French-language short tutorial, the speaker explains what PHP environment variables are, how they are created by the server for each script execution, and how they provide information about the execution environment (client or server). The video demonstrates two ways to access these variables: using the getenv() function and the $SERVER superglobal array. An example shows retrieving the user's browser name via getenv('HTTPUSERAGENT') and echoing it, then achieving the same result with $SERVER['HTTPUSERAGENT']. The speaker clarifies the common confusion between environment variables and server variables, noting that server variables are more numerous, but the $SERVER superglobal can access all environment variables. The tutorial emphasizes using the $SERVER notation for simplicity.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content