954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can I transfer a .doc and .jpg using php

In my web application I need to be able to allow the user to transfer files (word documents and pictures) from their computer to the server and I have been unable to google an answer. PHP, Apache and MySQL.

The problem is mainly I am unsure how to compose the question.

Thank you in advance,

John

flashmanvc
Newbie Poster
2 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

Use a form and look at http://php.net/manual/en/function.move-uploaded-file.php

<form... enctype="multipart/form-data">
...
<input type="file" name="myfile" />
...
</form>
diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

Thank you, I will give it a try. Kind regards John

Use a form and look at http://php.net/manual/en/function.move-uploaded-file.php

<form... enctype="multipart/form-data">
...
<input type="file" name="myfile" />
...
</form>
flashmanvc
Newbie Poster
2 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: