hailam Posted April 3, 2009 Share Posted April 3, 2009 I am using a script called AZ Photo Album Script Pro for my photo gallery, the index.php in the /include/ directory is not allowing my to upload large images. This is the error I get when I try to upload a larger image "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/a1082769/public_html/img/Upload/includes/classes/img2thumb.php on line 22" Here you can get img2thumb.ph http://download87.mediafire.com/zccwmmbyyqxg/zmniynzyjtv/img2thumb.php I am very new to php, Please guide me to solve this problem Thank you Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/ Share on other sites More sharing options...
ober Posted April 3, 2009 Share Posted April 3, 2009 You need to edit the php.ini file to allow for larger files to be transferred. Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/#findComment-800354 Share on other sites More sharing options...
hailam Posted April 3, 2009 Author Share Posted April 3, 2009 Thank you But isn't it telling that the error is /img2thumb.php on line 22 and I don't see any file named php.ini in the AZ Photo Album directory Thank you once again Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/#findComment-800364 Share on other sites More sharing options...
markwouters Posted April 3, 2009 Share Posted April 3, 2009 You need to change your php.ini Things i usually change: max_execution_time = 300 max_input_time = 600 memory_limit = 64M post_max_size = 8M upload_max_filesize = 8M M. Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/#findComment-800376 Share on other sites More sharing options...
hailam Posted April 3, 2009 Author Share Posted April 3, 2009 Can you tell me where is that php.ini, is it in the same AZ photo album directory or somewhere else. because I don't see any file named php.ini. there are files like index.php, login.php logout.php menu.php. but php.ini don't see at all, or is it a hidden file Thank you Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/#findComment-800402 Share on other sites More sharing options...
mrMarcus Posted April 3, 2009 Share Posted April 3, 2009 it's a PHP configuration file located on the server. if you are on a hosted server you may need to contact your host to get access to it if they will even allow you. it will be below your public_html directory so as to not be visible to the public, so check there. be warned though, if you do gain access to it, be careful .. 'cause again, that is you PHP config. you're best off using the ini_set() function: http://www.php.net/manual/en/function.ini-set.php. Quote Link to comment https://forums.phpfreaks.com/topic/152400-please-help-me-to-sove-this-problem/#findComment-800429 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.