By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,353 Members | 1,235 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,353 IT Pros & Developers. It's quick & easy.

Save File Automatically

P: n/a
Jay
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server and
automatically have it save in a user's specified folder.
-Jay
(patel at cs dot utk dot edu)

Aug 11 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jay wrote:
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server and
automatically have it save in a user's specified folder.
-Jay
(patel at cs dot utk dot edu)


no - PHP is serverside. Where / how the browser stores files is client side.

C.
Aug 11 '05 #2

P: n/a
Jay (pa***@cs.utk.edu) wrote:
: Hey there,
: Is there a way to have php automatically save a file that is being
: downloaded without having the annoying "Save As.." dialog box that
: appears? I would like to be able to create a txt file on the server and
: automatically have it save in a user's specified folder.
: -Jay
: (patel at cs dot utk dot edu)

Of course not. Otherwise every hacker/spammer/virus-producer would have
destroyed all our computers years ago.

You can suggest a name for a download file. You can send a zip file and
then unzipping it can save and restore paths (and sets of files), or
provide an install program that the user can run that does anything you
want (if they choose to run it). In a closed environment (i.e. the local
LAN in an office) you could use a plug-in that the users would have to
install that could allow this sort of thing (I have read of them but have
no names to suggest).

--

This space not for rent.
Aug 11 '05 #3

P: n/a
Jay wrote:
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server
and automatically have it save in a user's specified folder.

Why? People tend not to like that sort of thing.


Brian
Aug 11 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.