| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Problem after Updating|
| 12:46 am on Feb 9, 2006 (gmt 0)|
I have recently done some updates on my server. After that, it's not possible to access the files on a domain from another domain on the same server which I use the folowing for it:
$xyz = '/home/userid/public_html/dir/file.dat';
$abc = implode("," , file($xyz));
The message is:
failed to open stream: Permission denied in /home/userid/public_html/dir/file.dat on line 11
Can anybody help how to fiz it please.
edit: I changed all the permissions to 777 and it works, but I don't want to do it on all files.
| 1:12 am on Feb 9, 2006 (gmt 0)|
Just make sure the file and directory are readable by the user (or group) that's running the script. Check the permissions and ownerships.
| 1:16 am on Feb 9, 2006 (gmt 0)|
Thanks for the answer, but the problem is that nothing is touched manually, except of updates and security runs through cpanel. I think something is changed which I don't know where to find.
| 9:11 pm on Feb 9, 2006 (gmt 0)|
Perhaps the security runs changed the permissions or ownerships? Are you running in safe mode?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved