JamesTalbot Posted February 6, 2008 Share Posted February 6, 2008 Hello, I have recently been getting this error. Warning: Unknown(/home/account/public_html/page.php): failed to open stream: Permission denied in Unknown on line 0 Warning: Unknown(/home/account/public_html/page.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)() [function.include]: Failed opening '/home/account/public_html/page.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home') in Unknown on line 0 I have never got this before and have ran this page thousands of times over the last 4 months. All of a sudden im getting this? Any ideas Thanks in advance. James Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/ Share on other sites More sharing options...
awpti Posted February 6, 2008 Share Posted February 6, 2008 Try including some code. Might help. Errors like that are generally literal. You're trying to open a stream of some sort (include, require, fopen..) and you are being outright denied. Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/#findComment-459293 Share on other sites More sharing options...
JamesTalbot Posted February 6, 2008 Author Share Posted February 6, 2008 Hey, I have a include at the top line which is a config file. include ('config.php'); The config file is in the same directory and is simply a connection to the database. EDIT : About 50 other files are including that same file and they all return with no error? Thanks. James Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/#findComment-459295 Share on other sites More sharing options...
awpti Posted February 6, 2008 Share Posted February 6, 2008 Permission denied in Unknown on line 0 is a little ambiguous but generally indicate the source file (page.php) has bad permissions. Just for the hell of it, chmod page.php to 0777 and see what happens. Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/#findComment-459297 Share on other sites More sharing options...
JamesTalbot Posted February 6, 2008 Author Share Posted February 6, 2008 Same :/ I had the same error in a different file and i found that if i move the file into a different directory, it works fine? Obviously that is not a solution but a very strange founding. ??? Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/#findComment-459299 Share on other sites More sharing options...
JamesTalbot Posted February 6, 2008 Author Share Posted February 6, 2008 Anyone else Quote Link to comment https://forums.phpfreaks.com/topic/89639-strange-error/#findComment-460232 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.