We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,318 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

2
Contributors
2
Replies
10 Hours
Discussion Span
1 Year Ago
Last Updated
3
Views
flashmanvc
Newbie Poster
2 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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
Keep Smiling
Moderator
10,826 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,532
Skill Endorsements: 61

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
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0684 seconds using 2.65MB