

![]() |
| ![]() | |||||||
|
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Platinum Lifetime Member | imagepng() and File Permissions 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 |
| | |
| Sponsored Ads |
| | #2 (permalink) |
| Missing in action Name: Kate Last Online: Yesterday 06:42 PM iTrader: (41) Join Date: Jul 2005
Posts: 4,667
DNF$: 28,093 Location: .cz
Country: | 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.
__________________ VeryOldNames.com |
| | |
| | #3 (permalink) |
| Platinum Lifetime Member | 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 |
| | |
| | #4 (permalink) |
| Missing in action Name: Kate Last Online: Yesterday 06:42 PM iTrader: (41) Join Date: Jul 2005
Posts: 4,667
DNF$: 28,093 Location: .cz
Country: | Indeed you need to add the leading zero. 0777 and not 777 ![]()
__________________ VeryOldNames.com |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |