Upload File Size

From: Date: Sun, 01 Dec 2002 06:56:16 +0000
Subject: Upload File Size
Groups: php.windows 
Request: Send a blank email to php-windows+get-17228@lists.php.net to get a copy of this message
hi, here again i got a problem while uploading a file, I m using the following script. $file = $_FILES['userfile']['tmp_name']; print_r($file . "<Br>"); print($_FILES['userfile']['size'] . " IS THE SIZE <br>"); print($_FILES['userfile']['type']); exit(); // Out put .. if File size is less than 1000 d:\raheel\w3sites\php12F.tmp 73699 IS THE SIZE application/pdf // Out put .. if File size is greater than 1000 0 IS THE SIZE while my php.ini file is as follows ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir =d:\raheel\w3sites\ ; Maximum allowed size for uploaded files. upload_max_filesize = 2M regards raheel --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now

« previous php.windows (#17228) next »