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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post 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
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post by manojsemwal1 »

i need help to upload exe and pdf file format .....................
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post 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
Post Reply