forcryingoutloud Posted September 20, 2007 Share Posted September 20, 2007 I've found many scripts out there that will upload an image, then create a thumbnail. I understand how they work, but I've been unable to get any of them to properly resize an image on my server. I host my website with 1&1 (you may cringe, but its cheap, and has worked just fine until this problem). After a frustrating exchange of emails with their tech support, I have deduced that there is not enough memory on the server to resize a photo of a decent size (some pics 100k or less work ok) "Upgrade to the Developer Package and it will work..." they say. But I was hoping there was another way... I have installed Gallery2 on the server, and it has no problem resizing images of any size. This is what confuses me... Does anyone have any ideas? A way of controlling how the memory is used on the server? Quote Link to comment https://forums.phpfreaks.com/topic/69993-image-resize/ Share on other sites More sharing options...
trq Posted September 20, 2007 Share Posted September 20, 2007 I understand how they work, but I've been unable to get any of them to properly resize an image on my server. What exactly does this mean? Are you getting any errors? What are they? If its timing out, you might try using ini_set to increase the max_execution_time. Quote Link to comment https://forums.phpfreaks.com/topic/69993-image-resize/#findComment-351545 Share on other sites More sharing options...
forcryingoutloud Posted September 20, 2007 Author Share Posted September 20, 2007 This is the error: ======================= Error 500 - Internal server error An internal server error has occured! Please try again later. ======================= What is the code to set the max_execution_time ? ini_set("max_execution_time","200"); ? ? ? And where would I put it? At the beginning of the script? Thanks for your help... Quote Link to comment https://forums.phpfreaks.com/topic/69993-image-resize/#findComment-351555 Share on other sites More sharing options...
trq Posted September 20, 2007 Share Posted September 20, 2007 Turn off show friendly error messages in your browser. This might give you a better indication of whats going on. And yes, the ini_set()line you wrote is correct. Placing it at the beginning of the script is probably the best place for it. Quote Link to comment https://forums.phpfreaks.com/topic/69993-image-resize/#findComment-351558 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.