File too big / Session timeout
Posted: Thu Oct 21, 2010 9:43 am
So I'm uploading images files (JPG, PNG, GIF) using PHP $_FILE array.
I check the $_FILE['<username>']['error'], to ensure the value in NOT > 0. Should I also be checking the max_execution_time (set_time_limit) to ensure that the upload should be stopped prior to failing?
But how do you check whether it's taking too much time? How would you construct a IF-ELSE statement.
Any suggestions?
I check the $_FILE['<username>']['error'], to ensure the value in NOT > 0. Should I also be checking the max_execution_time (set_time_limit) to ensure that the upload should be stopped prior to failing?
But how do you check whether it's taking too much time? How would you construct a IF-ELSE statement.
Any suggestions?