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

curl-and-php

Re: Moving files on an FTP server via libcurl

From: Friedrich Koester <friedrich28_at_gmx.de>
Date: Fri, 29 Jun 2007 00:43:42 +0200

Hi Vipin,

what about the directory? Are you in the correct directory, i.e. did
you CWD there before?

Cheers
Friedrich

Am 29.06.2007 um 00:36 schrieb Vipin hegde:

> I split the command in two, as Daniel pointed out. Still no luck.
> I have the verbose flag turned on and I see no error message or
> warning which might give a clue as to why the files are not being
> moved over.
> ======================================================================
> ==================
> $cobj = curl_init();
> curl_setopt($cobj, CURLOPT_URL, $ftp_url);
> curl_setopt($cobj, CURLOPT_RETURNTRANSFER,1);
> curl_setopt($cobj, CURLOPT_VERBOSE, 1);
> curl_setopt($cobj, CURLOPT_USERPWD, $username . ":" . $password);
> curl_setopt($cobj, CURLOPT_FTP_USE_EPSV, 0);
> curl_setopt($cobj, CURLOPT_FTP_USE_EPRT, 0);
> curl_setopt($cobj, CURLOPT_FTP_SSL, CURLFTPSSL_ALL);
> curl_setopt($cobj, CURLOPT_SSL_VERIFYPEER, 0);
> curl_setopt($cobj, CURLOPT_SSL_VERIFYHOST, 0);
> curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNFR $filename"));
> curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNTO old_datafiles/
> $filename"));
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-29