1,105,534 Community Members

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

Member Avatar
flashmanvc
Newbie Poster
2 posts since Nov 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
diafol
Where are my eyes?
12,991 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,849 [?]
Skill Endorsements: 92 [?]
Moderator
Featured
Sponsor
 
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>
Member Avatar
flashmanvc
Newbie Poster
2 posts since Nov 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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>
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: