How can PHP handle the execution of batch files outside of the server root directory?

When executing batch files outside of the server root directory in PHP, you can use the `shell_exec()` function to run the batch file with its full path specified. This allows PHP to execute commands on the server outside of the web root.

$batchFilePath = '/path/to/batch/file.bat';
$output = shell_exec($batchFilePath);
echo $output;