PHP uploader only uploads Small files -


My PHP code uploads only a small file, such as 20 MB, when I try to upload that file which It does not return anything more than that, but it will insert the database anyway. I have tried to enter the upload size but it does nothing; the script should upload an SDF file and an image while inserting information into the database to use. Why can not it upload more than 20MB?

  & lt ;? Php $ link = $ _POST ['link']; If (isset ($ _ POST ['Upload'])) {$ permission_file-type = array ('.sff'); $ Max_filesize = 99999999999999999999999999999999999999999; $ Upload_path = 'swf /'; $ Game = $ _POST ['sports']; $ Range = $ _POST ['category']; $ Swf = $ _POST ['swf']; $ Height = $ _POST ['height']; $ Width = $ _POST ['width']; ".swf" $ radio =; $ Letters = '0123456789 ABCDEFGHIKLMOPQRSTUVWXAZDDGGLMNOPCrustWwox'; $ Done = ''; ($ I = 0; $ i & lt; 25; $ i ++) $. = $ Letters [mt_rand (0, 61)]; $ Filename = $ done '' $ Radio; $ Ext = substr ($ filename, strpos ($ filename, '.'), Strlen ($ filename) -1); If (! In_array ($ ext, $ allow_filetypes) dies) ('The file you tried to upload is not allowed'); If (files ($ _ files ['userfile'] ['tmp_name']) & gt; $ max_filesize ("The file you tried to upload is too large"); If (! Is_writable ($ upload_path) dies) ('You can not upload to the specified directory, please CHMOD it in 777.'); Enter ($ _Floaded_file ($ _FILES ['userfile'] ['tmp_name'], $ upload_path $ $ filename) {$ query = "image (title, description) values ​​($ filename, $ description)"; Mysql_query ($ query); Echo 'game successfully added'; $ Doney = $ website '' $ Filename; Echo "
"; Echo $ danny; $ Result = $ upload_path '' $ Filename; } Else {echo 'was an error during file upload, try again later.'; }}? & Gt; & Lt; Br / & gt; & Lt ;? Php if (isset ($ _ POST ['Upload'])) {$ permission_file type = array ('.jpg'); $ Max_filesize = 9999999999999999999999999999999999999999999999999999; $ Upload_path = 'gameimg /'; $ Game = $ _POST ['game']; $ Range = $ _POST ['category']; $ Swf = $ _POST ['swf']; $ Height = $ _POST ['height']; $ Width = $ _POST ['width']; ".jpg" $ radio =; $ Letters = '0123456789 ABCDEFGHIKLMOPQRSTUVWXAZDDGGLMNOPCrustWwox'; $ Done = ''; ($ I = 0; $ i & lt; 25; $ i ++) $. = $ Letters [mt_rand (0, 61)]; $ Filename = $ done '' $ Radio; $ Link = $ done "/ game id =?" $ Ext = substr ($ filename, strpos ($ filename, '.'), Strlen ($ filename) -1); If (! In_array ($ ext, $ allow_filetypes) dies) ('The file you tried to upload is not allowed'); If (file size ($ _ files ['file'] ['tmp_name']) gt; $ max_filesize ("The file you tried to upload is too large"); If (! Is_writable ($ upload_path) dies) ('You can not upload to the specified directory, please CHMOD it in 777.'); Enter ($ _ files ['filez'] ['tmp_name'], $ upload_path. $ Filename) {$ query = "image (title, description) values ​​($ filename, $ description)"; Mysql_query ($ query); Echo 'game successfully added'; $ Doney = $ website '' $ Filename; Echo "
"; Echo $ danny; $ Result = $ upload_path $ filename; } Else {echo 'was an error during file upload, try again later.'; }}? & Gt;

Clearly, your server does not support large files Php.ini file To see the contents of phpinfo (); Use . Check upload_max_filesize in your phpinfo () it is located under the core section of PHP information.
Edit: Also check Post_max_isize Which is located under the core section of phpinfo (in the comments by @TheSexiestManinJamaica). And again in the comments of post_max_size , check @seezoz .

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -