homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

PHP image resizing
Having problems uploading and resizing images

 9:57 am on Jan 7, 2003 (gmt 0)

I have been developing my own content management system with php and mysql for a particular Website. I have set up a form for adding a new data into my db, and to upload a new image to the web server. When the image uploads I resize it to the correct size. I want to do this so that the person uploading it (who would have taken the picture with a digital camera) doesn't have to worry about what size it is.

I have managed to get this working on my development server. However when I try it on the live web server I get the error message 'Could not open 'image' for processing'. I think that this is a problem with permissions on my PC. I am however not sure where to start looking.

Thanks in advance for your help.



 1:41 pm on Jan 7, 2003 (gmt 0)

Im no professional or anything, but have you tried chmodding differently? maybe allow script to be executed read, but not written to as its doing the writing?


 2:15 pm on Jan 7, 2003 (gmt 0)

Thanks for the info. Thats sounds like it might fix the problem. Do you have any Idea how I would go about doing this. Is this something I need to setup on the server or in the script


 6:45 pm on Jan 7, 2003 (gmt 0)

you could do it in the script with


 9:08 am on Jan 8, 2003 (gmt 0)

Thanks again for the information. I will try that.

Could anyone recommend a script that resizes images on the fly and uploads them to the server. I have been trying to write one myself but as you can see I am having problems.


 5:48 pm on Jan 8, 2003 (gmt 0)

I assume you have looked through here

there is also gd and their list of functions

it is now included in php 4.3.0 so the functions may be listed already in the image functions

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved