If you try to upload Flash flv file using PHP, and the files are not uploaded, you may even have tried to edit php.ini file, and it still doesn’t work. The reason is simple, for most people who use xampp, the php.ini is not in php/php.ini or php/php5.ini. The file is inside apache/php.ini.
The easiest way to locate the right php.ini file is to write an php file with the code: phpinfo();
View the php file from your browser and search to find the word: php.ini. You should get the path now.
Open the php.ini file and search for the word upload_max_filesize and post_max_size, assign them with bigger values. For instance:
upload_max_filesize = 100M
post_max_size = 100M
If you have tried to increase the upload_max_filesize and post_max_size in the php.ini file and it still doesn’t work, don’t give up. The problem could lies somewhere else, it could because of directory permission.
Good luck with your uploading!





















































#1 by shazzmerc1 on October 16, 2008 - 8:18 am
This is better than ANY forum ’solutions’. I am using xampp and tried to edit every ini file in php directory, and only after reading this post, i realized that it’s inside apache/ folder. Thanks so much for this help!
#2 by Hans Wassink on April 1, 2009 - 6:11 am
You could also place a .htaccess file in your root with these values and get rid of all the php.ini hassle.
php_value upload_max_filesize 1500M
php_value post_max_size 1500M
php_value max_execution_time 100000
php_value max_input_time 100000
#3 by Yonder on September 18, 2009 - 4:16 pm
I am still having this problem after making changes listed above. Can someone help?