krash11554 Posted September 16, 2012 Share Posted September 16, 2012 Im using the thumbnail function and im getting back Warning: imagejpeg() [function.imagejpeg]: Unable to open 'uploads/profilepics/kyle.jpg' for writing: Permission denied in C:\inetpub\wwwroot\garage\phpfunctions\thumb.func.php on line 49. i dont think it has to do with the code. Any help is appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/ Share on other sites More sharing options...
krash11554 Posted September 16, 2012 Author Share Posted September 16, 2012 Anyhelp?? Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378430 Share on other sites More sharing options...
Mahngiel Posted September 16, 2012 Share Posted September 16, 2012 what are the permissions, who is the owner, and what id does the web server run with? Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378435 Share on other sites More sharing options...
krash11554 Posted September 16, 2012 Author Share Posted September 16, 2012 This is why im confused bc idk anything you just said hahah. if you can explain it a little more it would probably help. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378437 Share on other sites More sharing options...
jazzman1 Posted September 16, 2012 Share Posted September 16, 2012 Is this on a hosted server, or a local? Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378458 Share on other sites More sharing options...
Mahngiel Posted September 16, 2012 Share Posted September 16, 2012 permissions determine who has access to read, write, and execute the file or in the directory. This has three sections: Owner, Group, Others and illustrated by a 10 'digit' association. drwxrwxrwx. Where the green d only applies if the item is a... directory. The absence of a character in the chain denotes removed permissions. ownership is determined by the creator of the file group permissions is determined by the groups associated with the creator of the file users A user's id / group determines if they have access to a file as determined by the permissions illustrated above. Your problem is that your web server (typically group www or www-data) does not have the proper permissions to write the image you are requesting. There are two scenarios as to why: [*]The folder is not writable by the user [*]The file is not writable by the user There are a slue of ways to fix this. Changing permissions of the folder, the file, changing groups, changing ownership. Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378459 Share on other sites More sharing options...
krash11554 Posted September 16, 2012 Author Share Posted September 16, 2012 Is this on a hosted server, or a local? local Quote Link to comment https://forums.phpfreaks.com/topic/268440-permissions-help/#findComment-1378478 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.