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?
File too big / Session timeout
Moderator: General Moderators
Re: File too big / Session timeout
If you don't want to increase session time, build a "session-live-keeper". It could be an IFRAME with a document with a self-refresh (e.g. every 1 minute) meta tag, reloading a dummy PHP file containing session_start().
Or you could do this with AJAX, JavaScript etc.
Or you could do this with AJAX, JavaScript etc.
There are 10 types of people in this world, those who understand binary and those who don't