class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Testing with the following code snippet and trying to upload 4 meg jpeg. I can successfully upload an image file no larger than a meg. When I try larger files, I get no message "file too big"...abolutely nothing printed to web and nothing in apache's error_log.
To test I have opened throttle on php.ini (and restarted apache): php.ini: upload_max_filesize = 30 M post_max_size = 30M
include("class.upload.php");
$handle = new upload($_FILES['image_field']);
if ($handle->uploaded) {
$handle->auto_create_dir = false;
$handle->process('Test');
if ($handle->processed) {
echo 'file uploaded';
$handle->clean();
} else {
echo 'error : ' . $handle->error;
}
}
To test I have opened throttle on php.ini (and restarted apache):
php.ini:
upload_max_filesize = 30 M
post_max_size = 30M
Thanks
Search for memory in the site, or click here.
You need to raise the PHP memory limit, with memory_limit