cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Upload File To Remote Server

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 29 Mar 2005 01:17:36 +0200 (CEST)

On Sun, 27 Mar 2005, Robert Wright wrote:

> I'm looking for a sample PHP script to upload a file from my web server to a
> remote FTP site. I'm using PHP (Linux) with Curl installed.

Basics:

Use a FTP URL with the target to-become file name.

Pick UPLOAD

Provide INFILE and INFILESIZE.

Perform.

Done.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-03-29