In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to solve PHP Warning:fopen errors". In daily operation, I believe many people have doubts about how to solve PHP Warning:fopen errors. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "how to solve PHP Warning:fopen errors"! Next, please follow the editor to study!
Conundrum:
Display_errors = Off has already been set in the PHP configuration file php.ini, but errors will still appear on the web page during the whole process of operation.
Solution 1:
Check log_errors= On, according to the official website, when this log_errors is set to On, then be sure to specific error_log files, if there is no specific or specific files do not have administrative rights to burn, then all the normal output mode will still be input.
That would invalidate the specific Off of display_errors, and the error would still be copied. So if you log_errors = Off, the problem will be solved.
Solution 2:
Deal with:
Open the php.ini file in the PHP installation directory
Find log_errors = off and change it to log_errors = on
Look for error_log= filename to change to error_log= "D:PHPerrlogphp_error.log" (the file directory and folder name D:PHPerrlogphp_error.log here, whichever you choose)
Note: when you have already copied the PHP.ini file to the windows file directory, be sure to add the c:windows/php.ini file.
In addition, php_error.log must at least have the right to change and write to USER, otherwise it is impossible to output incorrect system logs.
It is often seen that error_reporting (7) refers directly to: setting the level of incorrect information benefits.
Value constant
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2047 E_ALL
2048 E_STRICT
Little do you know that 7: 1, 2: 4
That is, the message 1 E_ERROR 2 E_WARNING 4 E_PARSE is displayed when the error occurs.
Copy the encoding as follows:
At this point, the study of "how to solve PHP Warning:fopen errors" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.