Usually when a local program is transferred to the server, various undefined NOTICE prompts will appear, which are not considered errors, but only warnings. You can add @ before the error statement or modify PHP.INI.
Usually when a local program is transferred to the server, various undefined NOTICE prompts will appear, which are not considered errors, but only warnings. You can add @ before the error statement or modify PHP.INI. This is caused by error_reporting = E_ALL in PHP.INI. If you don’t want to see this prompt, you can do this: error_reporting = E_ALL &~E_NOTICE. You can also add error_reporting(0) at the top of the page; This operation will prevent any errors from being displayed on this page. |