Re: ftp to WinNT/W2k

From: Date: Thu, 30 Nov 2000 01:26:44 +0000
Subject: Re: ftp to WinNT/W2k
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27809@lists.php.net to get a copy of this message
I do not know if this would help but PHP 4.0 introduced some FTP functions, http://www.php.net/manual/ref.ftp.php . I have not used them yet so if they do help could you let me know? Thanks. Jay ----- Original Message ----- From: "Dieter Kneffel" <data@mopilot.com> To: "php-general" <php-general@lists.php.net> Sent: Wednesday, November 29, 2000 8:17 AM Subject: [PHP] ftp to WinNT/W2k > I am having serious problems doing automated ftp to > WindowsNT machines. In some previous posts, I read > that due to a lack of 'passive mode' support on the NT > side, it does not work with PHP. Is there already some > workaround available? > > tnx, > > dk > > > currently, I am using this code for transfer... ftp to unix/linux > boxes works just fine! > > ... > $dfile = fopen( "ftp://" . $ftpUser . > ":" . $ftpPassword . "@" > . $ftpServerAddress . $ftpFileName ,w); > if( $dfile ){ > fwrite( $dfile, fread($sfile, filesize($srcFileName))); > fclose( $dfile ); > }else{ > // echo( "File open to FTP failed miserably"); > $error = "ftp_failed"; > } > ... > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27809) next »