开发者

Too many include_once/require_once/include/require

开发者 https://www.devze.com 2023-04-13 09:54 出处:网络
Due to many included files create an error like instead showing the conten开发者_如何转开发ts it only shows blank or one of the files has an error like no comma in the end of the script do not shows a

Due to many included files create an error like instead showing the conten开发者_如何转开发ts it only shows blank or one of the files has an error like no comma in the end of the script do not shows an error print like fatal error or syntax error in PHP?

I'm a bit worried cause i working on a site right now that has almost 20+ files to include from different directory.

I separated the files like a file that contains the page function, session functions, image function and other more.

I need some advice from anyone. Experts or not experts I really need to know this....


Sounds like you have error reporting turned off, i am not sure, if this is your question, though ;-). Put

ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);

at the very beginning of your script if you want to debug and don't want to change php.ini settings. Debugging like this on a production site is for obvious reasons not recommended, though (every visitor can see the error including sensible information, the error might contain).

It does not matter how many includes you have in your application -- 20 are not much, btw. -- you will always get the error together with the information in which line and which file it occured ...

0

精彩评论

暂无评论...
验证码 换一张
取 消