[thelist] Adding to the Login System with Admin Features: Two Questions

Symeon Charalabides symeon at systasis.com
Sun Feb 15 08:53:29 CST 2009

Hi Tony,

Just a small addition to Hugh Miller's image_upload_resampler script: At 
Step 1, you should also use the function is_uploaded_file as in

if ( is_uploaded_file($_FILES['form_upload_field_name']['tmp_name']) ) {

Check the PHP manual for the reason why.

>> 2. I am using this fantastic script as well
>> http://dottedi.biz/codesamples/forms/upload/upload_file.php to upload 
>> user
>> profile pics and I need to know how to resize the image on upload so a
>> 3000px wide picture is not crammed into a 50px wide space, causing the 
>> load
>> time to be slow.
>> Any help is much appreciated!
>> Thanks,
>> Tony


Symeon Charalabides (cosmopolite trainee)

More information about the thelist mailing list