what kind of error is this? my page was just running fine. i did not change anything neither the location of the requested file.

Warning: require_once(../php/main.php) [function.require-once]: failed to open stream: No such file or directory in.................... line 7

Fatal error: require_once() [function.require]: Failed opening required '../php/main.php' (include_path='.;C:\php5\pear') in..........................line 7.

Recommended Answers

All 4 Replies

Apparently, according to the error, your file is missing. So something must have changed.

the file is there in the folder. what should i do?

Hard to say. Does it happen on other files too ? or just main.php ?

post the actual code,
the error message is not sufficient
the code shown in the posted message is invalid; the file name is not quoted

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.