icarus9 Posted November 1, 2012 Share Posted November 1, 2012 Hi there, I was wontering if anyone can help me with this, i get this error everythime i try to write out a file using php. I canged the folder permissin to chmod 777 but i get the same error? Warning: fopen(products.csv) [function.fopen]: failed to open stream: Permission denied in /home/synat/public_html/demostore/ws-user/list.php on line 351 Please Help ?? Link to comment https://forums.phpfreaks.com/topic/270173-permission-denied-error/ Share on other sites More sharing options...
MDCode Posted November 1, 2012 Share Posted November 1, 2012 Did you change the file permission...? Link to comment https://forums.phpfreaks.com/topic/270173-permission-denied-error/#findComment-1389400 Share on other sites More sharing options...
icarus9 Posted November 1, 2012 Author Share Posted November 1, 2012 Did you change the file permission...? Yes i did but it did not work. I 've also checked that the safe mode is off in php.ini I also need to mention that im using DSO as a php handler in cpanel. Link to comment https://forums.phpfreaks.com/topic/270173-permission-denied-error/#findComment-1389405 Share on other sites More sharing options...
Christian F. Posted November 1, 2012 Share Posted November 1, 2012 How about the permission to to the folder(s) the file is located inside? Link to comment https://forums.phpfreaks.com/topic/270173-permission-denied-error/#findComment-1389463 Share on other sites More sharing options...
tuckbloor Posted November 5, 2012 Share Posted November 5, 2012 Hi, I was having the same problem this morning and came across this topic, the problem for me was once i ran the php script on xampp i checked the csv file to see if it was working, so it was open, once i closed the CSV file it worked with no problems at all. Link to comment https://forums.phpfreaks.com/topic/270173-permission-denied-error/#findComment-1390367 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.