Apprendre PHP (17/19) - Parcours de dossiers et exécution de programmes externes

10 Apr 2019 · 8 min
7:58

In this French tutorial, the instructor demonstrates how to work with directories in PHP and how to run external system commands. He starts by showing how to open a directory with opendir, change directories with chdir, and retrieve the current working directory using getcwd. He then explains reading entries one by one using readdir inside a loop, displaying each entry, and distinguishing files from directories with filetype. The lesson continues with the simpler scandir function, which returns an array of all entries, and shows how to iterate over that array. After covering directory handling, the video introduces the exec function for executing external programs such as ls, ls -l, ls -a, and ifconfig. The instructor shows how to capture command output into an array, iterate over it, and display detailed information, while warning about permission constraints that may prevent certain commands from running. The tutorial concludes with a recap of directory manipulation and external command execution in PHP.

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