Hi, I'm relatively new to PHP, so please forgive if I should already know the answer to this.
I'm writing a PHP script that tests if my server is set up correctly. One thing I want to test is if certain optional modules are installed and available. Is there a way to run require() or include() and have them do something other than blurt big messy errors and/or kill the script? I want my script to be able to do things like proceed to check other modules, print a nice summary of results, send an email etc... Maybe there's a function that just looks for a module without trying to load it?
An obvious solution is to write an error handler and call set_error_handler() before trying to require_once() the module in question. Unfortunately, if the module isn't available, the script dies even if my handler doesn't want it to.
Thanks!
-Pileofrogs