Save File Automatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    Save File Automatically

    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)

  • Colin McKinnon

    #2
    Re: Save File Automatically

    Jay wrote:
    [color=blue]
    > 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)[/color]

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

    C.

    Comment

    • Malcolm Dew-Jones

      #3
      Re: Save File Automatically

      Jay (patel@cs.utk.e du) 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.

      Comment

      • Default User

        #4
        Re: Save File Automatically

        Jay wrote:
        [color=blue]
        > 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.[/color]


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




        Brian

        Comment

        Working...