Yes I have. PDFs work in the same way as all other files.
Just do the following:
copy($UploadFile, $UploadDirectory);
and define the variables to be:
$UploadFile = the file that you want to upload
$UploadDirectory = the directory that you want the file to be copied to + name of the file
You can get the value of $UploadFile by placing a file textbox on your page as follows:
<?
//Code that uploads file to a directory
if ($btnSubmit){
$UploadDirectory = "uploads/".$UploadFile_name;
copy($UploadFile, $UploadDirectory);
}
?>
<form enctype='multipart/form-data' action=".$PHP_SELF." method='post' name='frmUploadNewFile'>
<input type="file" name="UploadFile">
<input type="submit" name="btnSubmit" value="submit">
</form>
When the user clicks on the Submit button it refreshes the page (or calls a new page depending on how you want it to work) and copies the file to the directory that you specify.
NOTE PHP stores the value of $UploadFile as a temporary file name (in a temporary location on the web server). To get the correct file name (as seen on the users machine) add '_name' to the variable that has stored the temporary details (i.e. $UploadFile_name)
This should be all you need. Best of luck!
-vivianp
P.S. This is my first time posting a reply on this message board, so please feel free to correct me if I am wrong.