transfer a directory

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

    #1

    transfer a directory

    I've looked, and not sure how to do this.

    I need to transfer a file from the local client machine to the web server.
    this would-be a whole a directory of files. I looked at ftp_put, but I don't
    think this will work with client to server.. or will it?

    can someone point me to the documentation on how to do this, if its
    possible?


  • Ian.H

    #2
    Re: transfer a directory

    On Fri, 16 Jul 2004 15:45:49 -0700, Anthony Reeves wrote:
    [color=blue]
    > I've looked, and not sure how to do this.[/color]


    Hmm.. where? not php.net I'm guessing ;)

    [color=blue]
    > I need to transfer a file from the local client machine to the web server.
    > this would-be a whole a directory of files. I looked at ftp_put, but I don't
    > think this will work with client to server.. or will it?[/color]


    That's the general ideal of FTP =)

    [color=blue]
    > can someone point me to the documentation on how to do this, if its
    > possible?[/color]


    <http://uk.php.net/manual/en/function.ftp-put.php>


    You'll need to loop through the dir to upload all the files.. see the user
    contributions to help in that part =)



    Regards,

    Ian

    --
    Ian.H
    digiServ Network
    London, UK


    Comment

    • Anthony Reeves

      #3
      Re: transfer a directory

      Yes php.net is where I looked first. Also several sites on php.

      perhaps my understanding of php is wrong. I assumed that php was resolved
      and run at the server, not the client. So when the ftp command is run its
      running on the server that interrupts the php and ftp command and attempts
      to find the file on the server to transfer (not on the client).

      is this incorrect? your saying that the php server interrupts the code and
      starts a process on the client side to upload the file?

      "Ian.H" <ian@WINDOZEdig iserv.net> wrote in message
      news:pan.2004.0 7.17.00.05.01.6 41000@bubbleboy .digiserv.net.. .[color=blue]
      > On Fri, 16 Jul 2004 15:45:49 -0700, Anthony Reeves wrote:
      >[color=green]
      > > I've looked, and not sure how to do this.[/color]
      >
      >
      > Hmm.. where? not php.net I'm guessing ;)
      >
      >[color=green]
      > > I need to transfer a file from the local client machine to the web[/color][/color]
      server.[color=blue][color=green]
      > > this would-be a whole a directory of files. I looked at ftp_put, but I[/color][/color]
      don't[color=blue][color=green]
      > > think this will work with client to server.. or will it?[/color]
      >
      >
      > That's the general ideal of FTP =)
      >
      >[color=green]
      > > can someone point me to the documentation on how to do this, if its
      > > possible?[/color]
      >
      >
      > <http://uk.php.net/manual/en/function.ftp-put.php>
      >
      >
      > You'll need to loop through the dir to upload all the files.. see the user
      > contributions to help in that part =)
      >
      >
      >
      > Regards,
      >
      > Ian
      >
      > --
      > Ian.H
      > digiServ Network
      > London, UK
      > http://digiserv.net/
      >[/color]


      Comment

      Working...