★ wanayoo — archive 1999 http://fr.php.net/manual/de/function.ftp-login.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | reporting bugs | php.net sites | links 
search for in the  
previousftp_getftp_mdtmnext
Last updated: Thu, 25 Jul 2002
view this page in Printer friendly version | English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Turkish

ftp_login

(PHP 3>= 3.0.13, PHP 4 )

ftp_login -- Anmelden einer FTP-Verbindung (Login)

Beschreibung:

int ftp_login ( int ftp_stream, string Benutzername, string Passwort)

Wenn die Anmeldung erfolgreich war, wird TRUE, anderenfalls FALSE zurück gegeben.

Anmeldung beim angegebenen FTP-Stream.

User Contributed Notes
ftp_login
add a note about notes
clambert@gamespy.com
26-Aug-2000 08:19

If the user/pass combo isn't accepted, the function returns a 0. However,
it also outputs an ugly error message to the browser, even if theres not a
syntax/parse error.

Try putting an @ before the function name to avoid any error output, and
then you can check the return value of 0 or 1 on your own.

dominguezmagic@nexgo.de
13-Dec-2001 12:22

Note that the "int ftp_stream value" is the result of your
ftp_connect(string host, int [port]) function.
Example: 
$con = ftp_connect("127.0.0.1",21);
$ftp_login($con,"user","password");

Please do not forget, like I did!

add a note about notes
previousftp_getftp_mdtmnext
Last updated: Thu, 25 Jul 2002
show source | credits | stats | mirror sites:  
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Tue Jul 30 05:05:42 2002 CEST