Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 210013 программистов и 1917 роботов. Сейчас ищут 1152 программиста ...

Net_FTP::login()

Вернуться к: Net_FTP

Net_FTP::login()

Net_FTP::login() – logs into the FTP server you are connected to

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::login ( string $username = null , int $password = null )

Does the login on the FTP server you are connected to. for that you first have to connect to a FTP server before logging in. Username and Password can either be set by the parameters or manually before (using the set-methods).

Parameter

  • string $username = null - The username to be used for login to. This parameter can be left out, if it has been set manually!

  • int $password = null - The password to use for login. This parameter can be left out, if it has been set manually!

Return value

mixed - true on success, otherwise PEAR::Error.

Throws

The returned PEAR_Error object in case of an error is unspecific. You can ignore the errornumber and errormessage, because only "Login failed" will be returned if the login fails.

Note

This function can not be called statically.

Example

Using login()

<?php
     
    $test
->login('myuser''mypass');

?>


Вернуться к: Net_FTP

© 2025 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware