answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How much bigger is 3.12GB than 8MB?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

What is the maximum size of a file that can be uploaded using PHP and how can you change this?

By default, the maximum upload size in PHP is 2MB. This is kept in the php.ini file. To allow for the upload of larger files you have 3 options.Change the php.ini file. You're going to go into your php.ini file and look for the lines: memory_limit = 8Mpost_max_size = 8Mupload_max_filesize = 2MYou want to change the upload_max_filesize. Make sure that you don't exceed the post_max_size (if you do, then change them both.) Also, it's a good idea to make sure that memory_limit is always larger than post_max_size. (This applies to all these solutions.)After making changes to php.ini, your webserver will need to be restarted.Assuming you can't get into php.ini, you're using Apache, and you're running PHP as a module, you can use an .htaccess file. That file should contain the following lines: php_flag file_uploads Onphp_value memory_limit 8Mphp_value post_max_size 8Mphp_value upload_max_filesize 2MYou put the .htaccess file in the root web folder, and it will apply to all the folders beneath it. If you do this and the server gives you a HTTP code 500 "Internal Server Error" then you aren't running Apache as a module and you can't do it this way. If it doesn't so anything, it's possible that you don't have the permissions to overwrite the Apache config via .htaccess.Finally, if all else fails, you can attempt to add a php.ini file to the webroot. PHP should find this ini file and abide by it. You don't need to copy every setting (anything not here is still in the original.) So your file should look something like this: [PHP]; Whether to allow HTTP fileuploads. file_uploads = On; Maximum amount of memory a script may consume (8MB)memory_limit = 8M; Maximum size of POST data that PHP will accept.post_max_size = 8M; Maximum allowed size for uploaded files.upload_max_filesize = 2MIf that technique fails, then it's time to admit defeat and call your hosting provider or IT guys and ask, politely, that they fix this for you.


Related questions

What is bigger 8mb or 60gb?

60gb is massive 8mb is tiny


What is bigger - 8mb or 10gb?

10 gigabytes is bigger than 8 megabytes because a gigabyte is is approximately a thousand times larger than a megabyte


Is 128 MB larger than 8 GB?

No 8mb is an eighth of 64mb now 8gb is a thousand times 8mb so it's 125 times 64mb


How much mbps is 1000 kbits?

1


How much memory can you put in a ps2 8mb memory card?

You can fit 8mb on it. That is not intended to be a smart remark, it all depends on how big the game's saved file will be.


Which memory card has more memory space for PS2 8MB or 16KB?

The 8MB memory card. 8Mb= 8192Kb


What are the disadvantage of a smart media card?

not to much storage it only has 8mb


What options do I have if I want a bigger memory card for my GamecubeIs 8mb the largest size available?

There are many different sizes of Gamecube memory cards available, 8mb versions are actually among the smallest and the largest are around 64mb of storage capacity.


Is 8Mb good for downloading movies and music?

is 8Mb fast


How many users can support 8MB broadband internet?

300 users can have in 8MB broadband internet access.


Can you use your Simm 8mb ram with the 128mb sdram?

No.


With 8Mb a month can you downnload music?

I'm sure this is a joke but I'm going to answer it anyways. With a 8MB limit, you can't download anything really. A single Mp3 file can be of 4mb.