PHP

FTP

������ � FTP-��������

Rambler's Top100
ftp_connect
���������� ����������� � FTP-�������.

��������� :
int ftp_connect(string host [, int port])

� ������� ftp_connect() �������� host ��������� ��� �������, � �������� ������������ �����������, � �������������� �������� port ��������� ����� ���� ����� ������������ (�� ��������� ��� 21).
������� ���������� ���������� ������ FTP ��� false � ������ ������.

ftp_pasv
���������� ������������ ����������� ������.

��������� :
int ftp_pasv(int ftp_stream, int pasv)

������� ftp_pasv() ���������� ������������ ������ ����������� � ���������, � ������, ���� �������� pasv ����� true. ���� false - �� ����� ����������� ����� ��������.
� ��������� ������ �������� ������ ������������ ��������, � � �������� - �������� (��� ������ ���������� ��� ���������� ������ � �������).
������� ���������� true ��� false ��� ������.

ftp_login
���������� ���� �� ������ FTP.

��������� :
int ftp_login(int ftp_stream, string username, string password)

������� ftp_login() ���������� ����������� � ������� ��� ������ username � ������� password. ���������� true ��� false ��� ������.

ftp_quit
���������� ���������� ������ FTP.

��������� :
int ftp_quit(int ftp_stream)


ftp_pwd
���������� ����������� �������� ��������.

��������� :
int ftp_pwd(int ftp_stream)

��� ������� ���������� ������� ������� FTP-������� ��� false ��� ������.

ftp_cdup
���������� ������� � �������� �������.

��������� :
int ftp_cdup(int ftp_stream)

������� ���������� true ��� false ��� ������.

ftp_chdir
���������� ������� � �������.

��������� :
int ftp_chdir(int ftp_stream, string directory)

������� ���������� true ��� false ��� ������.

ftp_mkdir
���������� �������� ��������.

��������� :
int ftp_mkdir(int ftp_stream, string directory)

������� ���������� ��� ���������� �������� ��� false ��� ������.

ftp_rmdir
���������� �������� ��������.

��������� :
int ftp_rmdir(int ftp_stream, string directory)

������� true ��� false ��� ������.

ftp_nlist
���������� ��������� �������� ��������.

��������� :
int ftp_nlist(int ftp_stream, string directory)

������� ftp_nlist() ���������� ������ �������� ���� ��� false ��� ������.

ftp_rawlist
��������� ���������� �������� ��������.

��������� :
int ftp_rawlist(int ftp_stream, string directory)

������� ftp_rawlist() ��������� FTP-������� LIST, � ���������� ��� ���������� � �������, ��� ������ ������� ������������� ������ ������ "��� ����". ������������� ���� �������, ������������ ftp_systype(), ����� ���� ����������� ��� ����������� ����, ��� ������� ���������������� ����������.

ftp_systype
���������� ��������� ������������� ���� FTP-�������.

��������� :
int ftp_systype(int ftp_stream)

������� ���������� ��������� �������� ��� false � ������ ������.
�� ���������� ����� ����� ������� "PHP 4. ����������� ����������."
www.piter.com
��������� � ����� "���������� Web-������": www.spravkaweb.ru.

Rambler's Top100