Tag: Display or Hide PHP errors/warning

Skip or Hide PHP errors / warnings

Errors are hints from compiler for the programmer to correct. But sometimes we face some unwanted or dynamic error. For example, $content = file_get_contents(https://blog.openshell.in/2011/01/execute-php-script-from-command-line-in-ubuntu/); Here , the url is invalid, or the server of the url is down , PHP shows Warning: Failed to open stream or file access is disabled. Use @ in front …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/01/skip-or-hide-php-errors-warnings/