Help - Search - Members - Calendar
Full Version: Problem Accessing A File In A Folder With Require()
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Corneliu
Hello!

I have a problem accessing a php file, which is located in a folder "news", from the root directory of my site. More specific, in the file index.php of my site I have this line of code:

require 'news/news_summary.php';

I get this error:

Warning: require(news/news_summary.php) [function.require]: failed to open stream: Operation not permitted in /www/vndv.com/b/e/t/betel-dumbraveni/htdocs/index.php on line 80

Fatal error: require() [function.require]: Failed opening required 'news/news_summary.php' (include_path='.:/usr/lib/php') in /www/vndv.com/b/e/t/betel-dumbraveni/htdocs/index.php on line 80

If I try to put "./" before "news", I get an error saying something about SAFE MODE.
The weird thing is that if I try to access the same file from a folder, say "events", also using require, it works. I use a line of code like this:

require '../news/news_summary.php';.

I think that maybe something is changed in the configuration of the server, because it worked before the well known problems. Please tell me how can I fix this.
Xleet
I have this same problem when trying to access the cutenews file but it only happens to 1 of my files no other.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.