Re: ftp_get from an IBM Mainframe z/vm system ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robin Vickery wrote:
On 01/03/06, Nils Reimann <mail@xxxxxxxxxxxx> wrote:

$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");
$download = ftp_get($conn_id, "$locale", "TEST EXEC", FTP_ASCII);
ftp_quit($conn_id);

connection workd, but the download did not. i got this error.

Warning: ftp_get(): Error opening in phpfile on line 174


The format of this error message is "Error opening <local filename> in
<script> on line <line>", so as the local filename is blank, I expect
you've probably left $locale empty.

  -robin
Thats why you should use ...,$locale,... rather then ...,"$locale",...

You will get better errors!

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux