Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 2
Trades: 0
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
 
 
Register now for full access!
Old 04-09-2008, 05:46 PM Re: file permissions fopen permission denied
Junior Talker

Posts: 2
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09651 seconds with 12 queries