Image upload problems!

Discussion in 'PHP' started by convex7, Feb 13, 2007.

  1. #1
    Hey all, i have the Co5Up script and it worked fine, now i have uploaded it and modified the design, i get the error message:

    Warning: copy(./images/589546794-b.jpg) [function.copy]: failed to create stream: Permission denied in c:\websites\imango474\imango.co.uk\upload.php on line 26
    Upload Failed, please try again
    PHP:
    Any help is greatly appreciated!
     
    convex7, Feb 13, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Try chmodding ./images/ to 755.
     
    nico_swd, Feb 13, 2007 IP
  3. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thankyou for the reply, but that doesn't seem to work, i also tried chmodding to 777, which i saw in the help forum.

    Any more ideas?
     
    convex7, Feb 13, 2007 IP
  4. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, i think i may have poin pointed the problem..the script works fine on my old host, but does not on the new one..could there be some restriction? or did i not set up the permissions currectly?
     
    convex7, Feb 13, 2007 IP
  5. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #5
    Thats surely a permission problem, contact your server admin for this problem. May be you also have change ownership of that folder.
     
    designcode, Feb 13, 2007 IP
  6. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the reply. I had a mate look at it for me and he thinks the same. When i change the chmod to 777 it resets to 666. So i sent a support ticket and see what they say.

    How do you mean change ownership?
     
    convex7, Feb 13, 2007 IP
  7. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I just found out that my host runs Windows server, so thats why the chmodding does not work. Although there is still no fix, the support team are looking in to it.

    Thanks for all your help so far!!
     
    convex7, Feb 13, 2007 IP
  8. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #8
    If you are running site on windows then its not a ownership problem.
     
    designcode, Feb 13, 2007 IP
  9. grandpa

    grandpa Active Member

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    75
    #9
    grandpa, Feb 13, 2007 IP
  10. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #10
    But it seems that problem is with folder permissions, once right permissions are assigned, he will be able to upload images. I used a windows server about two years back, I also faced same kind of problems.
     
    designcode, Feb 14, 2007 IP
  11. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I havn't heard anything back from support and time is money, so i think i am going to find another hosting service.

    I see that HostGator have the same amount of bandwidth etc, do they allow image hosting sites and are they using linux?
     
    convex7, Feb 14, 2007 IP
  12. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #12
    Yes host gator has linux based hosting, but I am not sure if they allow image hosting sites. Ask their support, I have heard that their support is superb.
     
    designcode, Feb 14, 2007 IP
  13. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thankyou for the quick reply designcode, i contacted their live support and they do allow image hosting sites. Is my problem likely to go away if i use HostGator?

    Thanks to everyone for the help received so far!
     
    convex7, Feb 14, 2007 IP
  14. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #14
    Yes there are bright chances, you will just have to chomd() folder and images will start uploading properly as Linux knows what do mean when you say chmod :D, I have worked on many image hosting websites and they all worked fine on cpanel (Linux) machines.
     
    designcode, Feb 14, 2007 IP
  15. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Just ordered a hosting plan, got it for 0.01 for the first month, which is great because i already payed $9.95 for the other host.
     
    convex7, Feb 14, 2007 IP
  16. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #16
    Oh thats great convex, I hope you will run your website smoothly with host gator.
     
    designcode, Feb 14, 2007 IP
  17. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #17
    There is no chmod by default in windows environments, the ftp server will disregard the command, that's why the permissions don't change, you need to change the owner of the folder, I'd get in touch with your host to ask them the exact procedure to use.
     
    krakjoe, Feb 14, 2007 IP
  18. convex7

    convex7 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Great, now i have changed the name servers and signed up to host gator, i get a reply... I did what they said and now everything is fine!!!
     
    convex7, Feb 14, 2007 IP
  19. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #19
    One advice for you convex, always buy linux based hosting if you are running a PHP script based website.
     
    designcode, Feb 14, 2007 IP