mkdir
�������� ��������.
��������� :
bool mkdir(string $name, int $perms)
������� ������� � ������ $name � ������� ������� perms. ����� ������� ��� ��������� ����������� ����� ��� ��, ��� � ��� ������. ���� ����� �������� $perms ������������� ������ 0770 (������������ ���� ���������� - �� ��������� PHP �� ��, ��� ��� - ������������ ���������, � �� ���������� �����).
������:
�������� ��������.
��������� :
bool mkdir(string $name, int $perms)
������� ������� � ������ $name � ������� ������� perms. ����� ������� ��� ��������� ����������� ����� ��� ��, ��� � ��� ������. ���� ����� �������� $perms ������������� ������ 0770 (������������ ���� ���������� - �� ��������� PHP �� ��, ��� ��� - ������������ ���������, � �� ���������� �����).
������:
mkdir("my_directory",0755); // ������� ���������� � ������� �������� mkdir("/data"); // ������� ���������� data � �������� ��������� ������ ������ ������� ���������� true, ����� - false.
rmdir
�������� ��������.
��������� :
bool rmdir(string $name)
������� ������� � ������ $name.
������� ������ ���� ������, � ��� �������� ������ ��������� ���.
� ������ ������ ������� ���������� true, ����� - false.
�������� ��������.
��������� :
bool rmdir(string $name)
������� ������� � ������ $name.
������� ������ ���� ������, � ��� �������� ������ ��������� ���.
� ������ ������ ������� ���������� true, ����� - false.
chdir
����� �������� ��������.
��������� :
int chdir(string $directory);
�������� ������� PHP ������� �� directory. ���������� FALSE ���� �� ����� ��������, TRUE ���� ����� ���������. �������� $directory ����� ���������� � ������������� ����, ���������� �� �������� ��������.
�������:
����� �������� ��������.
��������� :
int chdir(string $directory);
�������� ������� PHP ������� �� directory. ���������� FALSE ���� �� ����� ��������, TRUE ���� ����� ���������. �������� $directory ����� ���������� � ������������� ����, ���������� �� �������� ��������.
�������:
chdir("/tmp/data"); // ��������� �� ����������� ���� chdir("./js"); // ��������� � ���������� �������� �������� chdir(".."); // ��������� � ������������ ������� chdir("~/data"); // ��������� � /home/������������/data (��� Unix)
getcwd
������ ����.
��������� :
string getcwd()
������ ������� ���������� ������� ����������, ������������ ������� ���������� �������� ��������, �.�. ���������� ������ ���� � �������� ��������, ������� �� "�����" (/). ���� ����� ���� �� ������ ���� ��������, ����� "�������������" � ������������ false.
������ ����.
��������� :
string getcwd()
������ ������� ���������� ������� ����������, ������������ ������� ���������� �������� ��������, �.�. ���������� ������ ���� � �������� ��������, ������� �� "�����" (/). ���� ����� ���� �� ������ ���� ��������, ����� "�������������" � ������������ false.
diskfreespace
���������� ��������� ������������ � ��������
��������� :
float diskfreespace (string directory);
������ ������� ���������� � ������ ��������� ������������ � �������� directory, �� ���� � ��������������� �� �������� ������� ��� �� ������� �����.
������:
���������� ��������� ������������ � ��������
��������� :
float diskfreespace (string directory);
������ ������� ���������� � ������ ��������� ������������ � �������� directory, �� ���� � ��������������� �� �������� ������� ��� �� ������� �����.
������:
$diskspace=diskfreespace("/"); // ��� ����� �� ���������� ��������� ����� � �������� ���������� "/"