Page 1 of 1

Can't Open Directory, fopen warning

Posted: Sat Sep 27, 2008 5:06 am
by kkonline
Hi,
I am working on a rss aggregator script. however when I installed the same set of scripts on 1 webhost it works perfectly fine; however on another host of mine i get the following error

Code: Select all

PHP Warning:  fopen(/home/mysite/public_html/news/.rss.html) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /home/mysite/public_html/news/rsslib.php on line 84
What can be the reason that it works on one webhost and not on another?
The directory is 755 and all files in it are 644

Re: Can't Open Directory, fopen warning

Posted: Sat Sep 27, 2008 6:12 am
by VladSun
Maybe open_dir or safe_mode are used. Also try to remove the starting period from the file name.

Re: Can't Open Directory, fopen warning

Posted: Sat Sep 27, 2008 7:24 am
by kkonline
The issue has been resolved. The dir is 777 and the contents within which were 644 have now been chmoded to 666 and now it's fine.