|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-06 13:10 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 17:00:01 2025 UTC |
The following code will work on the 3.0.x series as well as 4.0b1 but NOT 4.0b2-1 or 4.0b2-2.(haven't tried cvs). All configured identically. The only variable that works is $userfile_size. Sol7 x86: egcs-1.1.2 and the latest GNU tools Sol7 sparc: gcc-2.8.1 and a mixture of SUN/GNU tools <HTML> <HEAD><TITLE>Upload Test</TITLE></HEAD> <BODY> <? if ( !$action ) { echo "<form enctype=multipart/form-data action=".$PHP_SELF." method=POST>\n"; echo "<input type=hidden name=MAX_FILE_SIZE value=500000000>\n"; echo "Send this file: "; echo "<input name=userfile type=file>\n"; echo "<input type=hidden name=action value=show_me_the_file>\n"; echo "<input type=submit value=Send File>\n"; echo "</form>\n"; } else { echo "<h2>Size: $userfile_size</h2>\n"; echo "<h2>Type: $userfile_type</h2>\n"; echo "<h2>Name: $userfile_name</h2>\n"; echo "<h2>File: $userfile</h2>\n"; } ?> </BODY> </HTML>