It can't find the file getPhotos.php in the folders c:\wamp\myPhotosWebsite\ or c:\php5\pear
- does the getPhotos.php exist?
- where is it?
- is it written exactly like that?
Your required file is not in the directory of the main script nor int the configured include dirs.
Looks rather weird. It does look weird because the error message says it can't open file "1", but not file "getPhotoes.php". It makes me think that string 'getPhotoes.php' is a part of arithmetic expression.
I suggest trying
- replace single quotes with double quotes
- remove space after closing bracket in require_once call.
Should look like this:
<?php require_once("getPhotos.php"); ?>
Another wild guess is that there is another require_once
call in the file (or in another file that is required by require_once) which has an arithmetic expression in its argument.
better to always use
<?php require_once(".\getPhotos.php"); ?>
Don't forget that if you already use require to "run" your index.php (it should not be the case) then require("xxx.php") maybe doesn't open xxx.php in the same directory as index.php
I have exactly the same error you have and I am using wamp as well what could be going wrong? did you fixed the problem
Warning: require_once(error.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\include.all.php on line 2
e-mail me at
joelitos hotmail.com
Thank you