×

Good News Everybody!

A new search engine is coming soon.

As a stop gap measure, we are using Google's custom search engine service.




It would be useful to know which command is failing and why.

You have no error checking in this script in terms of checking that the earlier commands succeeded - as a result you don't even know if the connection or sign-ons succeeded.

I would suggest adding a print-r to each command and checking that the connect worked e.g.


$conn = ftp_connect("myAS400");
If !$conn ....... ;

print_r (ftp_login($conn,"username","password"));



Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On 15-Jul-09, at 10:33 AM, web400-request@xxxxxxxxxxxx wrote:

I configured Zend Core to make the ftp functions available. That was
part of the problem. But I still can't get the FTP get and put
functions to work. We FTP between the QAServer and myAS400 server using
Toolbox for Java. So I know it can be done.

SCRIPT #1:
get RemoteFile [LocalFile]

<?php
$conn = ftp_connect("myAS400");
ftp_login($conn,"username","password");
ftp_raw($conn,"BINARY");


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.