#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    San Diego, CA, USA
    Posts
    8
    Rep Power
    0
    Does anyone know how to download/copy a text file from a dir on the server to a dir on the C drive of the user?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    14
    Errr...You let the user download the file??? As simply as putting a link in your page and then letting them click it??
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    San Diego, CA, USA
    Posts
    8
    Rep Power
    0
    Let me restate my question -- I want to access a remote text file (FILE). I don't want FILE to be displayed on the browser. I do want FILE to be saved in a directory on the user's local machine. Do I have to user some sort of transfer protocol? Do I need to FTP? If so, can you tell me what commands to implement? Do I need to reconfigure PHP since it didn't include the extension initially? I am reluctant to do this because resetting it all is risky business to me since I was not the original installer. Can I use HTTP for it? How? Is there some easier way that I'm overlooking?

    Thanks for any help.
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    you can not do this without user intervention or agreement, except by using activex controls which bypass the browsers inbuilt security and that is not a good thing to do for many reasons

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  3. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM
  4. Simple find and replace word search for a text file with php?
    By rabid lemming in forum PHP Development
    Replies: 4
    Last Post: February 1st, 2004, 09:37 PM
  5. php-sql file upload and download
    By mthroesch in forum PHP Development
    Replies: 0
    Last Post: January 28th, 2004, 01:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo