Upload and then Fetch

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ankurdave
Forum Newbie
Posts: 7
Joined: Tue May 18, 2004 12:35 am
Location: INDIA

Upload and then Fetch

Post by ankurdave »

Hi friends

In my program i upload successfully file to my specified folder now i want to fetch that file that file is in .doc format

And i want that a link is given to user for that word file and he can see that file by click on it directly or by download it whatever is possible.

Help me

Txnx in advance
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

You can just link to the file in HTML, if you're doing it from a web page. If you want to do it via a PHP script, you can use the "readfile" command:

Code: Select all

readfile("/path/to/document.doc");
flush();
Post Reply