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/02 Report--
This article mainly introduces how to solve the problem of php can not find include method, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Php can not find the solution to the include method: 1, check whether the location of the include file is correct; 2, detect whether the included file read permission is open; 3, detect whether the x permission of each directory on the included file path is open.
This article operating environment: Windows7 system, PHP7.4 version, Dell G3 computer.
Solution to the error of include File in PHP script
Often when php pages include pages in other locations using include, require and require_once, errors will occur, such as no secondary pages are found, or permissions are not allowed, which can be eliminated according to the following methods
1. When an error like "File not found" occurs, check that the location of the include file is correct. Here is a quote from the php manual page:
Files for including are first looked in include_path relative to the current working directory and then in the directory of the current script. E.G. If your include_path is libraries, current working directory is / www/, you included include/a.php and there is include "b.php" in that file, b.php is first looked in / www/libraries/ and then in / www/include/. If filename begins with. / or.. /, it is looked only in include_path relative to the current working directory.
two。 When a permission deny-like error occurs, remove it in the following ways
A) detect whether the included file read permission is open
B) detect whether the x permission for each directory on the included file path is turned on, which determines whether the directory can be browsed.
Thank you for reading this article carefully. I hope the article "how to solve the problem that php can not find include method" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.