Forum Moderators: coopster

Message Too Old, No Replies

Cannot Put Resized Images on the Server

I get an Error when I try to upload a resized image to the server.

         

Red_Eye

11:54 am on Feb 3, 2003 (gmt 0)

10+ Year Member



I have built a page to upload images on one of my sites. When it uploads the image it resizes it to a suitable size for the site.

I have managed to get the script working on my development Server (Win XP Pro & IIS 5.0). However when I try the same script on the live server (Apache) I get the following Error

Warning: imagejpeg() [function.imagejpeg]: Unable to open '../somethingelse/images/40.jpg' for writing in /server/somthing/something/adminsomething/uploadimage.php on line 112

I think that this is something to do with folder permissions on the web server. I am however unsure how to Proceed from here.

andreasfriedrich

12:05 pm on Feb 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How you can set file permissions will depend on how you access the server and what OS the server is running.

If you have console access and you are running *nix then chmod will let you change permissions. When you have FTP access then use the apropriate function of your favorite FTP program.

BTW it might be a good idea to use the same webserver on both your testing and live server.

Andreas

Red_Eye

12:15 pm on Feb 3, 2003 (gmt 0)

10+ Year Member



If you have console access and you are running *nix then chmod will let you change permissions. When you have FTP access then use the apropriate function of your favorite FTP program.

andreasfriedrich

Thanks for the reply I have both levels of access. This may seem like a stupid question but how should I chmod. Should I chmod the file or the folder?, and what should I change it to?.

I agree that I should use the same server setup for developing, and I am looking into it.

Red_Eye

12:53 pm on Feb 3, 2003 (gmt 0)

10+ Year Member



Just figured it out and it works. This Website has to be the best resource on the web thanks for your help

andreasfriedrich

12:56 pm on Feb 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad you got is sorted out Red_Eye.

WebmasterWorld is pretty nice indeed ;).

Andreas