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

curl-and-php

RE: 550 FTP return Code and full URI

From: Liu Shan Shui <me_at_lx.sg>
Date: Sat, 20 Jun 2009 22:14:32 +0800

Hi,

Are you using PHP 5.3 or an earlier version? CURLOPT_FTP_FILEMETHOD is only available on PHP 5.3.

With regards,
Liu Shan Shui
me_at_lx.sg
"Life would be much easier if I had the source code." - Anonymous

-----Original Message-----
From: curl-and-php-bounces_at_cool.haxx.se [mailto:curl-and-php-bounces_at_cool.haxx.se] On Behalf Of Developer
Sent: Saturday, June 20, 2009 10:05 PM
To: curl with PHP
Subject: RE: 550 FTP return Code and full URI

Hello,
But, Why do not work library curl_setopt with enum integers?
I am trying with something like this without good results:
curl_setopt($this->ch,138 /*CURLOPT_FTP_FILEMETHOD*/ ,2 /*CURLFTPMETHOD_NOCWD*/);
If I use nocwd in curl command line works fine.

-----------------
> array(9) {
> ["version_number"]=>
> int(463362)
> ["age"]=>
> int(3)
> ["features"]=>
> int(1581)
> ["ssl_version_number"]=>
> int(0)
> ["version"]=>
> string(6) "7.18.2"
> ["host"]=>
> string(23) "x86_64-redhat-linux-gnu"
> ["ssl_version"]=>
> string(12) "NSS/3.12.1.1"
> ["libz_version"]=>
> string(5) "1.2.3"
> ["protocols"]=>
> array(12) {
> [0]=>
> string(4) "tftp"
> [1]=>
> string(3) "ftp"
> [2]=>
> string(6) "telnet"
> [3]=>
> string(4) "dict"
> [4]=>
> string(4) "ldap"
> [5]=>
> string(5) "ldaps"
> [6]=>
> string(4) "http"
> [7]=>
> string(4) "file"
> [8]=>
> string(5) "https"
> [9]=>
> string(4) "ftps"
> [10]=>
> string(3) "scp"
> [11]=>
> string(4) "sftp"
> }
> }
> array(21) {
> ["url"]=>
> string(73) "ftp://*******:*******@ftpsecure.ingrammicro.com:21/FUSION/ES/TEST1/PRICE.ZIP"
> ["content_type"]=>
> NULL
> ["http_code"]=>
> int(550)
> ["header_size"]=>
> int(0)
> ["request_size"]=>
> int(0)
> ["filetime"]=>
> int(-1)
> ["ssl_verify_result"]=>
> int(0)
> ["redirect_count"]=>
> int(0)
> ["total_time"]=>
> float(3.982542)
> ["namelookup_time"]=>
> float(1.182618)
> ["connect_time"]=>
> float(1.18318)
> ["pretransfer_time"]=>
> float(3.366479)
> ["size_upload"]=>
> float(0)
> ["size_download"]=>
> float(0)
> ["speed_download"]=>
> float(0)
> ["speed_upload"]=>
> float(0)
> ["download_content_length"]=>
> float(0)
> ["upload_content_length"]=>
> float(0)
> ["starttransfer_time"]=>
> float(0)
> ["redirect_time"]=>
> float(0)
> ["request_header"]=>
> string(8) "CWD ES
> "
> }
> string(50) "Server denied you to change to the given directory"

-----------------

El sáb, 20-06-2009 a las 16:30 +0800, Liu Shan Shui escribió:
>
> But sadly, CURLOPT_FTP_FILEMETHOD was only added into PHP's
> curl_setopt()
> last month, and into PHP 5.3

-- 
--
--
Publicidad y Servicios http://www.pas-world.com
Directorio http://www.precioventa.com
Tienda http://informatica.precioventa.com/es/
Autoridad certificadora http://ca.precioventa.com/es/
--
--
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-06-20