ftp_put - How do I reference a file on my hard drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • selywork@swbell.net

    #1

    ftp_put - How do I reference a file on my hard drive

    I am just trying a simple up load of a file on my hard drive to my ftp
    site.

    $source_file="f ile://C:/1PRV.TXT";

    I get the error "remote host file access not supported,
    file://C:/1PRV.TXT"

    I can connect, log on and change directories just fine.

    Any help would be appreciated.

    Thanks, Steve
  • neur0maniak

    #2
    Re: ftp_put - How do I reference a file on my hard drive

    Try using "C:\\1PRV.T XT" as your local address?


    selywork@swbell .net wrote:[color=blue]
    > I am just trying a simple up load of a file on my hard drive to my ftp
    > site.
    >
    > $source_file="f ile://C:/1PRV.TXT";
    >
    > I get the error "remote host file access not supported,
    > file://C:/1PRV.TXT"
    >
    > I can connect, log on and change directories just fine.
    >
    > Any help would be appreciated.
    >
    > Thanks, Steve[/color]

    Comment

    • Phil Roberts

      #3
      Re: ftp_put - How do I reference a file on my hard drive

      selywork@swbell .net treated the lovely people of comp.lang.php
      with the following stuff:
      [color=blue]
      > I am just trying a simple up load of a file on my hard drive to
      > my ftp site.
      >
      > $source_file="f ile://C:/1PRV.TXT";
      >
      > I get the error "remote host file access not supported,
      > file://C:/1PRV.TXT"
      >
      > I can connect, log on and change directories just fine.
      >
      > Any help would be appreciated.
      >
      > Thanks, Steve[/color]

      If the FTP functions are being used on a remote server then you
      cannot reference files on your hard drive.

      --
      Phil Roberts | Deedle Doot Doo Dee Dee | http://www.flatnet.net/

      I could be wrong here, You could be right
      Please forgive me I have sinned - Not on your life
      But that's how you want me, But I'll never fear thee
      Why you and not me? Tell me Holy Man

      Comment

      • selywork@swbell.net

        #4
        Re: ftp_put - How do I reference a file on my hard drive

        Can this awful thing be true?

        On Sat, 23 Oct 2004 17:31:28 -0500, Phil Roberts
        <phil.roberts@g ooglemail.com> wrote:
        [color=blue]
        >selywork@swbel l.net treated the lovely people of comp.lang.php
        >with the following stuff:
        >[color=green]
        >> I am just trying a simple up load of a file on my hard drive to
        >> my ftp site.
        >>
        >> $source_file="f ile://C:/1PRV.TXT";
        >>
        >> I get the error "remote host file access not supported,
        >> file://C:/1PRV.TXT"
        >>
        >> I can connect, log on and change directories just fine.
        >>
        >> Any help would be appreciated.
        >>
        >> Thanks, Steve[/color]
        >
        >If the FTP functions are being used on a remote server then you
        >cannot reference files on your hard drive.
        >
        >--
        >Phil Roberts | Deedle Doot Doo Dee Dee | http://www.flatnet.net/
        >
        >I could be wrong here, You could be right
        >Please forgive me I have sinned - Not on your life
        >But that's how you want me, But I'll never fear thee
        >Why you and not me? Tell me Holy Man[/color]

        Comment

        • Markus Ernst

          #5
          Re: ftp_put - How do I reference a file on my hard drive

          selywork@swbell .net wrote:[color=blue]
          > Can this awful thing be true?
          >[/color]

          Read this interesting article on web-based FTP with PHP:



          HTH
          Markus


          Comment

          Working...