If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!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?
Video Script - The ultimate media site script
AutoVideoScript com - Run your own youtube sharing site
Perhaps it's the permissions of the particular directory where the thumb is saved. Have you tried saving to another folder ?
When you use cpanel I assume you connect as root so you have higher rights... PHP must be running under the apache user with insufficient permissions on the directory.
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
I did try your suggestion with different directories and it seams like it worked when saving it on the root. After reading doing some research I noticed the that chmod takes 4 charaters instead of 3. So I just replaced 755 with 0755 and that worked.
Video Script - The ultimate media site script
AutoVideoScript com - Run your own youtube sharing site
Indeed you need to add the leading zero. 0777 and not 777![]()
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
Bookmarks