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!
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?
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?
Thats surely a permission problem, contact your server admin for this problem. May be you also have change ownership of that folder.
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?
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!!
im too lazy to read all posts, but if it's image upload problem just use this php class http://www.verot.net/php_class_upload.htm it works fine in unix and windows server.
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.
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?
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.
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!
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 , I have worked on many image hosting websites and they all worked fine on cpanel (Linux) machines.
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.
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.
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!!!
One advice for you convex, always buy linux based hosting if you are running a PHP script based website.