Beginner: failedtoopenstream of PHP; problem: Windows XP system

Source: Internet
Author: User
Beginner's problem: failedtoopenstream in PHP. in Windows XP, I installed wamp on the machine and mounted a server. Then, in php, require_once & quot; HTML/Template/IT. php & quot; and then run it. the following error occurs: Warning: r newbie: PHP failed to open stream. windowsXP system
I installed wamp on the local machine and mounted a server, and then I
Require_once "HTML/Template/IT. php ";
Then run the command.
Warning: require_once (HTML/Template/IT. php) [function. require-once]: failed to open stream: No such file or directory in D: \ Program Files \ wamp \ www \ example8-2.php on line 7

Fatal error: require_once () [function. require]: Failed opening required' HTML/Template/IT. php '(include_path = '.; c: \ php5 \ pear ') on D: \ Program Files \ wamp \ www \ example8-2.php on line 7

I have installed the HTML_Template_IT package. I am a little dizzy about what permissions I say online.
Can you help me answer this question? Or how to set permissions?

I learned PHP for the first time. I don't know much about it. please kindly advise. thank you!

------ Solution --------------------
No such file or directory
Wrong path...

From this path D: \ Program Files \ wamp \ www \ example8-2.php

The estimated location should be D: \ Program Files \ wamp \ www \ HTML \ Template \ IT. php.

Or set require_once "HTML/Template/IT. php ";
Change IT. php to the absolute path, such as require_once "D: \ Program Files \ wamp \ www \ HTML \ Template \ IT. php ";
------ Solution --------------------
Well, the path is incorrect. it is either a write error or a file put error. You do not need to set permissions under win. Check whether the path and writing path are correct.
------ Solution --------------------
Your code is require_once (PEAR. php); then PEAR. php must be in the same directory as IT. php.

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.