Page 1 of 1

Unable to upload pdf and exe format file type .........

Posted: Thu Feb 18, 2010 1:48 am
by manojsemwal1
Hai iam using the following code to upload the file its upload word and xls and image file properly but its unable to upload pdf and application type file............like exe and winrar............

$filename=$_FILES["file"]["name"];
$random_digit=rand(0000,9999);
//$newname = 'Upload\$filename';
$path = 'Upload/'.$random_digit.$filename;
echo $path;

$newpath= move_uploaded_file($_FILES["file"]["tmp_name"],$path);


Thanks

Re: Unable to upload pdf and exe format file type .........

Posted: Thu Feb 18, 2010 3:46 am
by manojsemwal1
i need help to upload exe and pdf file format .....................

Re: Unable to upload pdf and exe format file type .........

Posted: Thu Feb 18, 2010 8:02 am
by manojsemwal1
Its working in linux server but unable to wamp server why....................

pl help why this is having problem or we have to set any php.ini file