Hongmu Notes
Home Summary of pitfalls How to enable error reporting in php?
Summary of pitfalls

How to enable error reporting in php?

How to enable error reporting in php?

Simple and efficient method.

Add the code directly.

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
?>

Just add in the erroring PHP filetopmostAdd the following code,Only takes effect on the current script

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Browser caching increases the speed of secondary visits to your website

Browser caching increases the speed of secondary visits to your website Summary of pitfalls

Use browser caching of official words: If users will visit your website multiple times, browser caching of static resources can save users time. Cache headers should be applied to all cacheable static resources, not just to a small subset of static resources (for example, images). Cacheable resources include JS and CSS files, image files, and other binary object files (media files, PDF files, etc.). Normally, HTML doesn’t…
👁 201

Recommended reading

(Adaptive mobile phone version) Express logistics company pbootcms website template html responsive express freight website source code download 0349

(Adaptive mobile phone version) Express logistics company pbootcms website template html responsive express freight website source code download 0349 Practical Collection pbootcms Template

This set of PbootCMS responsive website templates for express delivery and logistics companies is adaptable to mobile phones. The design style is efficient and modern, suitable for express delivery and freight companies to display their service network and distribution capabilities. It helps logistics companies display their brands online and attract e-commerce and corporate customers. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip password: www.4s5.cn Related articles P…
👁 58
(PC+WAP) hook spring balancer website template - with three-level columns 1062

(PC+WAP) hook spring balancer website template - with three-level columns 1062 Practical Collection pbootcms Template

A hook spring balancer PbootCMS website template, supports PC and WAP terminals, with three-level columns. The design style is professional and industrial, suitable for displaying hooks, spring balancers and other products and technical parameters. It helps industrial equipment companies display their products online and attract manufacturing customers. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip password: www.4s5.…
👁 52
Marketing generator electromechanical equipment website template 0627

Marketing generator electromechanical equipment website template 0627 Practical Collection Yiyou template

This set of eyoucms templates is suitable for marketing generators and electromechanical equipment companies. The design style is professional and industrial, and can display generator set products, electromechanical equipment and technical solutions. It helps electromechanical companies display their products online and attract industrial and power customers. Template display Installation instructions Website backend: /login.php Account: admin Password: admin Related articles Summary of common problems in Yiyou CMS installation Yiyou C...
👁 52
(PC+WAP) blue atmosphere building lighting project pbootcms website template lighting engineering company website source code download 0109

(PC+WAP) blue atmosphere building lighting project pbootcms website template lighting engineering company website source code download 0109 Practical Collection pbootcms Template

This set of PbootCMS templates adopts a blue style and is suitable for building lighting projects and lighting engineering companies. It supports PC and mobile terminals. The design style is modern and bright, which can well display lighting project cases and lighting products. It helps lighting engineering companies demonstrate their technical strength online and obtain more municipal and commercial projects. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip...
👁 57
Python compresses website images in batches to slim down the website!

Python compresses website images in batches to slim down the website! Language Notes python

My website is very slow to open because the images are very large. So I thought of using python to compress images. Compress png into webp format, directly reducing the weight by 88%! The compression rate is very high, but it is very clear. 1.4G png is directly compressed to 120M, and it is very high-definition. Anyone else? ! The function of the Python script: recursively traverse all files in the uploads directory. Skip less than or equal to 300KB…
👁 432