I am using unlink on my PHP page. In some situations, Permission may be denied for deleting the directory. Instead of having
Warning: unlink(stuff/New folder) [function.unlink]: Permission denied in ... on line 30
show up on the rendered page, is there a way for me to do a "warning_get_last" that will capture the last given warning, so I can output it nicely? Or does error_get_last include these?
I know I can suppress the warnings with @unlink and that I can also check to see if unlink returns false, but I would like to know the error message that goes along with it if it does fail.