SimonSellick
Programmer
...or possibly, none is being thrown.
I have a script that runs OK under Apache but fails to complete under IIS. It's embedded within an <IMG> tag so generates an image rather than text.
I've wrapped it in a simple try {...} catch {(Exception $e)...} block, but whilst this catches an exception if I deliberately raise one in the script, it doesn't catch whatever is stopping the script from completing. Is there something else that I need to do to catch PHP-raised exceptions, or does PHP not raise an exception for some run-time errors?
Any help appreciated.
I have a script that runs OK under Apache but fails to complete under IIS. It's embedded within an <IMG> tag so generates an image rather than text.
I've wrapped it in a simple try {...} catch {(Exception $e)...} block, but whilst this catches an exception if I deliberately raise one in the script, it doesn't catch whatever is stopping the script from completing. Is there something else that I need to do to catch PHP-raised exceptions, or does PHP not raise an exception for some run-time errors?
Any help appreciated.