Demo for php error handling functions