Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload a large file 1

Status
Not open for further replies.

fcjm

Programmer
Jan 15, 2001
19
0
0
PH
Does anyone knows how in php I could upload a large file (8 mb)? Besides setting the php.ini in the server. I can upload an image or file in my server as long as it is not greater than 2 mb. Any ideas?
 
the only wa is by changing the php.ini file.

Known is handfull, Unknown is worldfull
 
The maximum filesize you can upload is limited by three PHP settings: max_execution_time (for slow connections mostly), post_max_size, and upload_max_filesize.

max_execution_time can only be set in php.ini.

However, the other two can be set on a per-directory basis. If you are running PHP as an Apache module, then you can override the php.ini settings in a .htaccess file. Take a look here: for more information on placing PHP configuration directives in httpd.conf or .htaccess files.

Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top