| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Problem after Updating|
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.
Just make sure the file and directory are readable by the user (or group) that's running the script. Check the permissions and ownerships.
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.
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