You really should fix whatever’s causing the warning, but you can control visibility of errors with error_reporting()
. To skip warning messages, you could use something like:
error_reporting(E_ERROR | E_PARSE);
More Related Contents:
- “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key”, and “Notice: Undefined offset” using PHP
- How to deal with mysqli problems? mysqli_fetch_array(): Argument #1 must be of type mysqli_result
- Showing all errors and warnings [duplicate]
- Illegal string offset Warning PHP
- How can I handle the warning of file_get_contents() function in PHP?
- Reference – What does this error mean in PHP?
- How do I get PHP errors to display?
- Disable warnings when loading non-well-formed HTML by DomDocument (PHP)
- How to avoid isset() and empty()
- Headers and client library minor version mismatch
- mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]
- PHP Warning Permission denied (13) on session_start() [duplicate]
- Unknown modifier ‘/’ in …? what is it? [duplicate]
- relative path in require_once doesn’t work
- Server configuration by allow_url_fopen=0 in
- What to do with mysqli problems? Errors like mysqli_fetch_array(): Argument #1 must be of type mysqli_result and such
- Warning: session_start() failed: No such file or directory
- PHP error: php_network_getaddresses: getaddrinfo failed: (while getting information from other site.)
- How to find a reason when mkdir fails from PHP?
- How to fix ‘Creating default object from empty value’ warning in PHP [duplicate]
- Can I detect and handle MySQL Warnings with PHP?
- Fatal error: Uncaught Error: Cannot use a scalar as an array warning
- Removing array of arrays for certain inner values in PHP
- What is the use of the @ symbol in PHP?
- Detecting request type in PHP (GET, POST, PUT or DELETE)
- $_POST vs. $_SERVER[‘REQUEST_METHOD’] == ‘POST’
- Publishing To User’s Wall Without Being Online/Logged-in – Facebook Sharing Using Graph API
- PHP File Upload
- file locking in php
- How to get current PHP page name [duplicate]