homepage Welcome to WebmasterWorld Guest from 54.145.182.50
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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
Red_Eye

10+ Year Member



 
Msg#: 937 posted 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.

 

Acecool

10+ Year Member



 
Msg#: 937 posted 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?

Red_Eye

10+ Year Member



 
Msg#: 937 posted 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

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 937 posted 6:45 pm on Jan 7, 2003 (gmt 0)

you could do it in the script with
[php.net...]

Red_Eye

10+ Year Member



 
Msg#: 937 posted 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.

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 937 posted 5:48 pm on Jan 8, 2003 (gmt 0)

I assume you have looked through here
[php.net...]

there is also gd and their list of functions
[boutell.com...]

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