beboo002 Posted February 17, 2009 Share Posted February 17, 2009 Hello freaks, Issue while uploading images more then 3050*3050 size (height and width) I have make a file uploading script that’s work fine. But when I upload image size up to 3050*3050 (height and width) then scripts is not working. There is any way to upload the image more then 3050*3050 (height and width) Regards Beboo Link to comment https://forums.phpfreaks.com/topic/145554-issue-while-uploading-images/ Share on other sites More sharing options...
gevans Posted February 17, 2009 Share Posted February 17, 2009 This is usually an issue with memory available. Check your php.ini file for; memory_limit = 128M ; Maximum amount of memory a script may consume (128MB) That can be increased to solve this problem Link to comment https://forums.phpfreaks.com/topic/145554-issue-while-uploading-images/#findComment-764154 Share on other sites More sharing options...
beboo002 Posted February 20, 2009 Author Share Posted February 20, 2009 Hello freaks My company has two server http://xyz.net.au and http://xyz.com.au In .net.au my image sricpt was not working The php config is PHP Version 5.1.6 GD Version bundled (2.0.28 compatible) And .com.au server config is in this server image upload secript working fine PHP Version 4.3.2 GD Version bundled (2.0.12 compatible) And my local server php config is here upload script working fine PHP Version 5.2.6 GD Version bundled (2.0.32 compatible) Now when I send a request to .net.au server that script not working Then they reply i.e The issues you are experiencing are probably due to the two servers operating on different versions of PHP. The server with Rackspace is using PHP 4, whereas the Netregistry server is using PHP 5. These versions of PHP pass objects differently which might be the cause of the issue. However, you should be able to modify the image resizing scripts to work under PHP 5. The gd image library that is required by the script is correctly installed on the Netregistry server and should not be causing any issues. I unable to understand what can I do. Please suggest any path to salove this problem. Plz find the code as an attachment Regards beboo [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/145554-issue-while-uploading-images/#findComment-766760 Share on other sites More sharing options...
angelcool Posted February 20, 2009 Share Posted February 20, 2009 Check you apache error_log. If the script works ok with smaller image files, chances are high you are having a memory limit issue, if this is the case your error log will say so. Link to comment https://forums.phpfreaks.com/topic/145554-issue-while-uploading-images/#findComment-766864 Share on other sites More sharing options...
beboo002 Posted February 20, 2009 Author Share Posted February 20, 2009 Thanks for reply I am already set ini_set in main script for memory_limit . Link to comment https://forums.phpfreaks.com/topic/145554-issue-while-uploading-images/#findComment-766875 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.