PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
if (!is_dir('examples')) {
echo 'Does not exist';
}
else {
if (rmdir('examples')==0) echo 'Failed to remove directory';
else echo 'Directory removed.';
}
?>
Edit: I see that you can from next post. You have to set a callback function to process the error and then you should probably restore the handler unless you want to keep your function as the default way to show errors/warnings.
Last edited by Eric! on Fri Jul 03, 2009 7:57 am, edited 1 time in total.