0

hi all,

i want to upload large video files using php and i can do that by editting php.ini file. but how can i do that without changing php.ini file??

advance thanks

iqbal

2
Contributors
5
Replies
7
Views
7 Years
Discussion Span
Last Post by cwarn23
0

With the following:

ini_set('memory_limit','64M');
ini_set('max_execution_time','256');
ini_set('upload_max_filesize','60M');
0

thnQ cwarn23. but it's not working.

normally i can upload filesize upto 15M.
i want to upload at least 50M.
plz help.

0

50MB!!

You should have mentioned that in the first place. Factoring in that you should place at the top of your page the following if your webhost doesn't mind big uploads.

ini_set('memory_limit','80M');
ini_set('max_execution_time','512');
ini_set('upload_max_filesize','75M');
ini_set('file_uploads','75M');

Also note that I added a line.

0

sorry sir but it's not working yet.
should i do something on .htaccess file?

plz help.

0

As a test you can try the following but could you mention what version of php you are using and if possible mention the effected php.ini settings.

ini_set('memory_limit','8000M');
ini_set('max_execution_time','102400');
ini_set('upload_max_filesize','7500M');
ini_set('file_uploads','1');

Also what do the errors say?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.