Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

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!

Results 1 to 4 of 4
  1. #1
    Platinum Lifetime Member
    SGBoise's Avatar
    Join Date
    Jan 2008
    Location
    USA
    Posts
    41
    DNF$
    275
    Bank
    0
    Total DNF$
    275
    Donate  

    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

  2. #2
    Country hopper
    katherine's Avatar
    Join Date
    Jul 2005
    Location
    Up north
    Posts
    7,171
    Country

    Iceland
    DNF$
    31,103
    Bank
    0
    Total DNF$
    31,103
    Donate  
    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

  3. #3
    Platinum Lifetime Member
    SGBoise's Avatar
    Join Date
    Jan 2008
    Location
    USA
    Posts
    41
    DNF$
    275
    Bank
    0
    Total DNF$
    275
    Donate  
    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. #4
    Country hopper
    katherine's Avatar
    Join Date
    Jul 2005
    Location
    Up north
    Posts
    7,171
    Country

    Iceland
    DNF$
    31,103
    Bank
    0
    Total DNF$
    31,103
    Donate  
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com