Submit articles - Debt Consolidation - Free Myspace Layouts - Web Hosting - Debt Consolidation

PDA

View Full Version : imagepng() and File Permissions


SGBoise
Oct 15th 2008, 9:26 am
Hey guys,

I am having problems with my script. My script allows you to upload videos, music, pictures, etc. When I upload the thumbnail from the media it uses imagepng() to resize the thumbnail to the size I want.

The problem is that it makes the permissions 363 which won't allow anyone to be able to read the file. I can't even change the permissions using ftp. I have to use the cpanel file manager.

I also tried setting the permissions to 755 using chmod() in php and it returns as true.

Anyone have any ideas?

EricBruggema
Oct 15th 2008, 12:52 pm
try 0755 instead of 755

SGBoise
Oct 15th 2008, 8:07 pm
Thanks Eric, I tried that and it worked.