Download and Open a file

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
salim
Forum Newbie
Posts: 5
Joined: Sat Jun 02, 2007 2:32 am

Download and Open a file

Post by salim »

Hi

Straight away into the problem.I want to download a word file when i click on the link and automaically save to a particular folder (say c:\myfiles) and open it open it before the user.I know how to simply download a file.I want to download file without prompting the user with the save,download window and open it frm the downloaded location.

OR

If i hit the save button in the prompted window will i be able to open the file automatically after download?

Plz Help

Thnx in advance
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

That's not going to work. Ever. (Think about it: If this was possible any kiddie could install a virus on your pc.)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I believe that's possible, but not from the server. You'd actually have to run your PHP files on their computer to alter their file system.
But really, not everyone has Word anyway. I know I don't.
salim
Forum Newbie
Posts: 5
Joined: Sat Jun 02, 2007 2:32 am

Post by salim »

Hello

Thanks for the expert opinion.

I know this will be the reply.But what to do i was just trying.

once again Thanks for the help .
Post Reply