upload problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

upload problem

Post by jito »

hello friends,
i have problem uploading larze files.
i have tried everything, using MAX_FILE_SIZE, changing_max_execution_time,upload_max_filesize,post_max_file_size, but unable to solve.
i uploading process seems to be a never ending process in case of file more than 2 mb, but it works great when uploading small files.
any help?
thnx.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What did you change the values to?
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Post by jito »

Code: Select all

ini_set("upload_max_filesize", '10M');
ini_set("post_max_size", '10M');
ini_set("max_execution_time", 30*60);
ini_set("memory_limit","64M");
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Using ini_set() will have no affect on them, outside of maximum execution time for that script instance. Use an .htaccess or your web server's equivalent to alter the settings for php.
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Post by jito »

thnx feyd, i have already e-mail them asking for permission. No other alternatives? What is the reason of time-out? i have tried:

Code: Select all

set_time_limit ( 0 );
but with no effect.
Post Reply