I was looking around so many tutorials and it kept saying php.ini php.ini php.ini. But where do you get a php.ini file? Well, simple create one yourself, and be happy to know that it is only 2 lines of codes.
I am writing the php.ini file for file upload size. (by default php sets it at 2MB).
So basically these are the steps:
1.) Open Notepad
2.) Type this in:
post_max_size = 10000000
upload_max_filesize = 10000000
10000000 = 10 MB
3.) Save, upload this file to the server, into the folder where your upload script resides.
DONE!
.htaccess won't work with some of the shared hosting companies, so my method is the way to go :)
if you want .htaccess may work for some:
php_value memory_limit 150M
php_value post_max_size 100M
php_value upload_max_filesize 50M
php_value max_execution_time 600
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment