Page 1 of 1

Upload and then Fetch

Posted: Wed May 19, 2004 8:41 am
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

Posted: Wed May 19, 2004 10:50 am
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();