Hi,
copy and save whateverFileNameYouWant.php, upload to your server, and then direct your browser to this file..
<?php
phpinfo();
?>
Look for the following values, and they should have something more than 2MB at least 100MB or higher depending on your application
post_max_size
upload_max_filesize
If those above php.ini settings still on the default value you need to change them.. To change it, you need to ask your host. If you are testing it on WAMPP or XAMPP, look for the loaded configuration file on the page above..
Loaded Configuration File // this should have a value of /php/php.ini depending on your server setttings
If your host does not allow you modify your php.ini file look for the "server API" value of your server". Is it fast CGI? or is it Apache Module?
If it is CGI, FAST CGI, or anything with CGI. create a new file and save it as php.ini. paste codes below to this file
post_max_size = 200M
upload_max_filesize = 200M
Upload this file to the root directory of your server or your domain...CANNOT be in the same level as the public_html file.
If server API says, apache module.. create a new document on your notepad and save it as .htaccess
php_value post_max_size 200M
php_value upload_max_filesize 200M
WARNING! If you have an existing .htaccess file anywhere where the upload script is running, just ADD the above codes to it.
If you are running your script in LAMPPP or XAMPP just edit the php.ini file with notepad.
If you are running xampp on linux, ubuntu and all other distros, type in your terminal
sudo -s
sudo gedit /opt/lampp/php/php.ini
hit enter, search for the post_max_size and the upload_max_filesize and change their value. On the gedit, click on the save button.. the editor.. restart your LAMPP ... sudo /opt/lampp/lampp restart
end of my response... time to get back to my school homework...