In PHP I am making a kind of bot which dynamically includes a few different PHP files. Since these PHP files may change, I would like the files to be checked for syntax/parse errors before the include() or require() is run. Would this be possible? If so, how?
use the php executeable with the -l argument from the command line. you can do that using a system call, or shell_exec