Dry run php script from shell

view full story

http://www.unix.com – Is it possible to dry run a php script without actually executing it? Say I need to test the output of a php file to see if it matches a pattern. I need to run this on all php files on the server. But I fear if there are php files that make modifications, sends out mail etc, that should not happen. In short only static php files should be executed. If there is a php script with the following code and when I run "php /path/to/test.php" from the command line, it should not send mail, but just give no output. test.php contents PHP Code: <?mail("email@domain. (HowTos)