Re: uplad a pdf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Roger,
You can user move_uploaded_file php function for upload file
I have show below code which is basic
<?php
$uploads_dir = '/uploads';
foreach ($_FILES["pictures"]["error"] as $key => $error) {
    if ($error == UPLOAD_ERR_OK) {
        $tmp_name = $_FILES["pictures"]["tmp_name"][$key];
        $name = $_FILES["pictures"]["name"][$key];
        move_uploaded_file($tmp_name, "$uploads_dir/$name");
    }
}
?>  
Thanks
Amit



________________________________
 From: Roger Head <headrog@xxxxxxxxx>
To: "php-objects@xxxxxxxxxxxxxxx" <php-objects@xxxxxxxxxxxxxxx> 
Sent: Monday, March 19, 2012 1:34 AM
Subject:  uplad a pdf
 

  
Do any one have code that edables the user to upload a pdf to a php site

Roger Head 
________________________________
(709)726-4323(home)  (709)690-9006(cell), (709)729-0481(work)
www.nlscoreboard.com

> 

[Non-text portions of this message have been removed]


 

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux