Export de_path = '.:/usr/share/php:/usr/share/pear'

Source: Internet
Author: User
Include_path.: usrsharephp: usrsharepear Fatal error: require_once (): Failed opening required '.. /exception/db_exception.php '(include_path = '. :/usr/share/php:/usr/share/pear ')
RT. I make sure that my reference path is correct, but I am still prompted to failed to open. I changed the permission to 777. this problem still exists.


Reply to discussion (solution)

Where is your program file?

I guess this is the problem: http://bbs.phpchina.com/thread-181640-1-1.html. now I have changed it according to this example.

Http://www.laruence.com/2012/09/12/2765.html

I don't want to talk to you about the problem, but I think you can look at the file contained in php.

This problem has been solved, so we can see that the reference of Php is different from that of java later. at the beginning, access. php, then current_dir is the folder. if you want to configure the Include file, there will be problems with the path, because the file you want to file now is. php path. My current practice is to let all requests go through Index. php, define various paths in Index. php, and distribute them to different controllers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.