Novice questions about PHP failed to open stream related issues windowsxp system
Source: Internet
Author: User
Newbie question PHP failed to open stream problem windowsxp system
I installed a server on this machine, and then I wamp in PHP.
Require_once "html/template/it.php";
Then the run will appear
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 ') in D:\Program files\wamp\www\example8-2.php on line 7
I have installed the Html_template_it package. I'm a little dizzy about what I say on the internet.
Can you help me answer this question? or set up detailed steps for permissions?
Little brother for the first time to learn PHP many places do not understand please more advice thank you!
------Solution--------------------
No such file or directory
The path is misplaced ...
From this path D:\Program files\wamp\www\example8-2.php
Guess the position should be put D:\Program files\wamp\www\html\template\it.php
Or put require_once "html/template/it.php";
Change to the absolute path where the it.php is located, such as require_once "D:\Program files\wamp\www\html\template\it.php";
------Solution--------------------
Well, the path error, not the error you wrote, is the wrong file. There is no need to set permissions under win. So check that the path and writing path are correct
------Solution--------------------
Your code is require_once (pear.php), then pear.php must be in the same sibling directory as it.php.
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