[thelist] PHP File Upload, Image Resize, Gallery Articles or Tuturials
Bob Meetin
ontheroad at frii.com
Wed May 2 17:58:38 CDT 2007
With large files it's also nice to get some idea of progress. This is
something I ran into a while back, tested, nice:
*uber*-*uploader*.sourceforge.net/
If phpthumbnails does not work, take a look at ImageMagick and
'convert'. It's got lots of intriguing image manipulations options way
beyond creating thumbnails. With the image galleries that I play with I
use it to create varying sizes of uploaded images.
Question back at y'all - I also have PHP scripts to upload PDF documents
- regarding limits, on one of the sites (hosted) the script will upload
up to about 2MB, then fails (probably the same limit with all documents,
images, etc); the hosting service said they have no limits in place,
but I'm wondering if there is a 'default' in place that I can override?
This is good information. -Bob
kasimir-k wrote:
> Chris Dempsey scribeva in 02/05/2007 8:39:
>
>> In particular I'm looking for guidance on what the largest file size the
>> native PHP upload function will handle without timing out,
>>
>
> Two things to beware with large files:
> - timing out: set max_input_time to large number or -1 (no limit)
> <http://es2.php.net/manual/en/ref.info.php#ini.max-input-time>
> - memory running out: to make a thumbnail, PHP needs to create a full
> color image, which may be a lot larger than the uploaded file, if it was
> jpg. <http://es2.php.net/manual/en/ini.core.php#ini.memory-limit>
>
> If you don't have access to php.ini, you can set these in your .htaccess
> file, for example:
> php_value max_input_time 1800
> php_value memory_limit 96M
>
>
>> and if PHP has an
>> inbuilt function to resize images or whether I need an aftermarket
>> component.
>>
>
> http://php.net/manual/en/function.imagecopyresampled.php
>
> .k
>
More information about the thelist
mailing list