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

Reply via email to