joecooper Posted April 18, 2006 Share Posted April 18, 2006 i think that this is how u upload files...copy($myimage,$uploaddir.$filename)but i want to limit the size of the file. how is this done?Thanks Quote Link to comment Share on other sites More sharing options...
ypirc Posted April 18, 2006 Share Posted April 18, 2006 [a href=\"http://us3.php.net/manual/en/features.file-upload.php\" target=\"_blank\"]http://us3.php.net/manual/en/features.file-upload.php[/a][a href=\"http://us3.php.net/manual/en/function.is-uploaded-file.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.is-uploaded-file.php[/a][a href=\"http://us3.php.net/manual/en/function.move-uploaded-file.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.move-uploaded-file.php[/a][!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]The contents of $_FILES from the example form is as follows. Note that this assumes the use of the file upload name userfile, as used in the example script above. This can be any name.$_FILES['userfile']['size'] The size, in bytes, of the uploaded file. [/quote] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.