|
|
 |
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 |
 |
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!
|
|
 |
 | |