From inside my index.php file, say, I’d like to check if another PHP file executes without error (and include it, if so), and if it does in fact fail and returns a fatal error, I’d obviously like to not include it. Any suggestions? Thanks…
Share
You may use
-lparameter ofphpCLI:and parse the output.