Reply
file permissions fopen permission denied
Old 04-09-2008, 03:06 PM file permissions fopen permission denied
Junior Talker

Posts: 2
I am getting a permission denied error when i try to open a file for writing.
PHP Code:
$handle=fopen(dirname(__FILE__)."/photos/file.jpg","w"); 
The photos directory has the user and group set correctly and permissions are "rwx r-x r-x". I have also tried "rwx rwx r-x".. I cannot find out what is the issue here. I am using PLESK for my control panel.

Here is the error:
Code:
fopen(/var/www/vhosts/X/httpdocs/photos/file.jpg) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/vhosts/X/httpdocs/index.php on line 411
Helmetman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-09-2008, 04:46 PM Re: file permissions fopen permission denied
Junior Talker

Posts: 2
Nevermind, permissions were not set to 755.
Helmetman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to file permissions fopen permission denied
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11146 seconds with 13 queries