Overview

The program execution functions allow PHP to execute commands in your system’s command interpreter/shell. This provides access to many of the useful tools supported by your platform.With the exception of escapeshellargs(), which was added in PHP 4.0.3, the program execution functions are present in all versions of PHP 3 and 4.

Using these functions, PHP can execute system commands and gather their output. While these functions may be convenient, they are slow and prone to security flaws. Use them with caution! Additionally, these functions were designed for UNIX-like operating systems and may not operate properly (or at all) under other operating systems.

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.