屏蔽PHP错误提示 方法一: 在有可能出错的函数前加@,然后ordie("") 如: @mysql_connect(...)ordie("DatabaseConnectError") 方法二: 编辑php.ini,查找"display_errors=",将=后面的值改为"off。(就是把它前面的;去掉,值设成ON) 方法三: 在php脚本前
屏蔽PHP错误提示
方法一:在有可能出错的函数前加@,然后or die("")
如:
@mysql_connect(...) or die("Database Connect Error")
方法二:编辑php.ini ,查找"display_errors =" ,将“=”后面的值改为"off。(就是把它前面的;去掉,值设成ON)
方法三:在php脚本前加error_reporting(0),屏蔽所有错误提示。
其中,error_reporting 配置错误信息回报的等级。
语法:int error_reporting(int [level]);
返回值:整数
函数种类:PHP 系统功能

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1
Easy-to-use and free code editor

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)