您的位置 首页 php

php关闭报错

php关闭报错

一、直接在php代码中加入以下代码

error_reporting(E_ALL^E_NOTICE^E_WARNING);

这样可以关闭所有notice 和 warning 级别的错误。把这个语句放在您脚本的功用包含文件中,通常为config.php 或者conn.php 中就可以控制输出了。

二、通过配置php.ini文件关闭错误提示

方法如下:

1、打开PHP安装目录下的php.ini文件

2、找到display_errors = On 修改为 display_errors = off

注意:

如果你已经把PHP.ini文件复制到windows目录下,那么必须同时把c:windows/php.ini里的display_errors = On 修改为display_errors = off。

问题:

PHP 设置文件php .ini中明明已经设置display_errors = Off,但是在运行过程中,网页上还是会出现错误信息。

解决:

1、打开PHP安装目录下的php.ini文件

2、找到log_errors = off 修改为 log_errors = on

3、找到error_log = filename 修改为 error_log="D:PHPerrlogphp_error.log" (这里的目录和文件名D:PHPerrlogphp_error.log随便你取什么)

注意:

如果你已经把PHP.ini文件复制到windows目录下,那么必须同时把c:windows/php.ini文件。此外php_error.log至少要有USER的修改和写权限,否则无法输出错误日志。

推荐教程:PHP视频教程

以上就是php关闭报错的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:php关闭报错

文章地址:https://www.zhihuclub.com/3161.shtml

关于作者: 智云科技

热门文章

评论已关闭

31条评论

  1. Is it safe to take Viagra with alcohol When it comes to lubes I would highly suggest a water based lube ONLY

  2. By carmel moxam on Saturday, April 14, 2012 – 02 14 pm Edit Post Until my goal is wrong

  3. While our ED service does require a consultation with a doctor or nurse practitioner, it s probably more straightforward and definitively safer than trying to buy ED pills online

  4. 9 In women, lacking GnRH due to hypophysectomy, progesterone from the CL can be maintained with LH infusion. There is not much evidence, but Chinese herbs are said to improve fertility when taken along with other fertility drugs.

  5. The observations revealed that in therapeutically achievable concentration none of the bacterial strain in the study was treatable with aspirin. No rashes were reported in these patients.

  6. As an anabolic steroid, it helps build physical strength and endurance, and more importantly, an Anavar result doesn t come with any major side effects

  7. If you think something isn t right with your chest tissue, see your provider for an evaluation

  8. Even though the sides and venues have battled for concerts, sporting events and New York basketball supremacy, the opportunity for money is bringing them together for this project A possible etiologic factor in the development of pleural mesothelioma is A pneumoconiosis B asbestosis C anthracosis D hereditary disposition E peritoneal mesothelioma SUR 73

  9. 137 These findings complement the previously mentioned hormonal and metabolic changes induced by CHO restriction 115 and indicate that in humans CHOs have a more dominant role than protein in the response to fasting

  10. Results With our ultrasensitive proteomic method, we detected more than 500 exosome proteins from as little as 100 ng of purified exosomes

  11. By inhibiting protein synthesis, alkylating agents such as cisplatin trigger apoptosis in rapidly dividing tumor cells

  12. Clinical trials to determine lapatinib s value as an adjuvant treatment in a wider variety of circumstances are ongoing, as are trials of several other tyrosine kinase inhibitors that target HER2 and EGFR By evaluating metastatic MBC mMBC treated with an AI or CPA 8, 13, administered alone or combined with a GnRH analogue, we previously noted some differences favoring the association

  13. NF ОєB subsequently induces transcription of the Btk gene depicted and other NF ОєB dependent genes, including IОєB not shown

  14. He is the best person to analyze your risk group and advise you regarding your requirement for this highly beneficial drug

  15. A link with drugs is not the image that a business partner wants Because of this emotional stress, some groups recommend only women with a strong family history of breast cancer be tested; only 2 of women in America fit this category

  16. The new offshore wind strategy is an important step forward to bringing many projects that have stalled over recent months to fruition

  17. Nongenomic actions of estrogen in the brain physiological significance and cellular mechanisms I am 63 years old this month and praise God, my wife, J

  18. The information provided in Qualitative and quantitative composition of Tamosan is based on data of another medicine with exactly the same composition as the Tamosan Similar findings were observed by other studies among hospitalized patients 14, 15, 24

  19. A thorough examination and a review of the man s medical and surgical history are necessary, because chronic disease, pelvic injury, childhood illness, abdominal or reproductive organ surgery, recreational drug use, and medications can affect fertility

  20. E 2 blocked serine phosphorylation and acetylation of p53 caused by resveratrol lane 7, but in the presence of E 2 and ICI, the inhibitory effect of the hormone on phosphorylation and acetylation of p53 was not seen lane 8 At the level of the ovary, there is a depletion of ovarian follicles, especially the granulosa cells

  21. Although radiation to the breast is well tolerated, it does increase breast pain, fibrosis, and retraction for at least a limited amount of time, as shown in Cancer and Leukemia Group B CALGB 9343

  22. haha and my doctor will be getting a phone call as well if af doesn t show and i get a bfn TREATMENT OPTIONS SURGERY OVARIAN DRILLING A surgical procedure called ovarian drilling, where small holes are made in the ovary, can increase the chances of conception, especially in women with PCOS

网站地图