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

With the following:

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

thnQ cwarn23. but it's not working.

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

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.

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

plz help.

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.