|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-19 18:43 UTC] sniper@php.net
[2001-11-21 14:14 UTC] mlara at gcintl dot com
[2003-10-26 14:59 UTC] gregt_fletcher at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 05:00:01 2025 UTC |
I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error "The page cannot be displayed". My script is: <? //check for file upload if ($set=="go") { if (is_uploaded_file($UploadedFile)) { print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); } } ?> <FORM ENCTYPE="multipart/form-data" ACTION="test.php" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1024000"> <INPUT NAME="UploadedFile" TYPE="file"> <INPUT TYPE="hidden" name="set" value="go"> <INPUT TYPE="submit" VALUE="Upload"> </FORM> </BODY> </HTML> My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; ;;;;;;;;;;;;;;;; file_uploads = On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I?m hoping that there are other solutions. Thanks Mauricio