homepage Welcome to WebmasterWorld Guest from 54.221.175.46
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Problem after Updating
Jay27




msg:1263500
 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.

 

eeek




msg:1263501
 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.

Jay27




msg:1263502
 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.

eeek




msg:1263503
 9:11 pm on Feb 9, 2006 (gmt 0)

Perhaps the security runs changed the permissions or ownerships? Are you running in safe mode?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved