Jump to content


Photo

Uploading using...


  • Please log in to reply
1 reply to this topic

#1 joecooper

joecooper
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 18 April 2006 - 05:28 PM

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
Signature:
[/a]
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#2 ypirc

ypirc
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 18 April 2006 - 05:35 PM

[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]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users