file_exists
��������� ������������� ����������� �����.
��������� :
bool file_exists(string filename)
���������� true, ���� ���� � ������ filename ���������� �� ������ ������. ������� ������������ ��� ������� � �������������. ��������, ��������� ��� ������ �� ������� � ����� ������ ������������:
������� �� �������� � ���������� �������, ���� ������ ���������� � ��������� ��� ������� �������� �������.
���������� ������� ����������, ��. ������� clearstatcache().
��������� ������������� ����������� �����.
��������� :
bool file_exists(string filename)
���������� true, ���� ���� � ������ filename ���������� �� ������ ������. ������� ������������ ��� ������� � �������������. ��������, ��������� ��� ������ �� ������� � ����� ������ ������������:
$fname="/etc/passwd"; if(!file_exists($fname)) $f=fopen($fname,"w"); else $f=fopen($fname,"r");���� � ���, ��� ����� ������� file_exists() � ��������� ����� � ������ w �������� ��������� �����, � ������� �������� ������ ������� ����� ���������� � ��������� ������������ ���� ����. ������ �������� ������� �� �������� ���� ��� ��������� �������� ��������.
������� �� �������� � ���������� �������, ���� ������ ���������� � ��������� ��� ������� �������� �������.
���������� ������� ����������, ��. ������� clearstatcache().
filetype
���������� ��� �����.
��������� :
string filetype(string filename)
���������� ������, ������� ��������� ��� ����� � ������ filename. ���� ������ ����� �� ����������, ���������� false.
����� ������ ������ ����� ��������� ���� �� ��������� ��������:
���������� ��� �����.
��������� :
string filetype(string filename)
���������� ������, ������� ��������� ��� ����� � ������ filename. ���� ������ ����� �� ����������, ���������� false.
����� ������ ������ ����� ��������� ���� �� ��������� ��������:
file - ������� ����; dir - �������; link - ������������� ������; fifo - fifo-�����; block - ������-��������������� ����������; char - ���������-��������������� ����������; unknown - ����������� ��� �����;
is_file
�������� ������������� �������� �����.
��������� :
bool is_file(string filename)
���������� true, ���� filename - ������� ����.
�������� ������������� �������� �����.
��������� :
bool is_file(string filename)
���������� true, ���� filename - ������� ����.
is_dir
�������� ������������� ��������.
��������� :
bool is_dir(string filename)
���������� true, ���� ������� filename ����������.
�������� ������������� ��������.
��������� :
bool is_dir(string filename)
���������� true, ���� ������� filename ����������.
is_link
�������� ������������� ������������� ������ �� ����.
��������� :
bool is_link(string filename)
���������� true, ���� filename - ������������� ������.
������� �� �������� ��� Windows.
�������� ������������� ������������� ������ �� ����.
��������� :
bool is_link(string filename)
���������� true, ���� filename - ������������� ������.
������� �� �������� ��� Windows.
is_readable
�������� ������������� �����, ���������� ��� ������.
��������� :
bool is_readable(string filename)
���������� true, ���� ���� ����� ���� ������ ��� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.
�������� ������������� �����, ���������� ��� ������.
��������� :
bool is_readable(string filename)
���������� true, ���� ���� ����� ���� ������ ��� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.
is_writeable
�������� ������������� �����, ���������� ��� ������.
��������� :
bool is_writeable(string filename)
���������� true, ���� � ���� ����� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.
�������� ������������� �����, ���������� ��� ������.
��������� :
bool is_writeable(string filename)
���������� true, ���� � ���� ����� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.
is_executable
�������� ������������� ������������ �����.
��������� :
bool is_executable(string filename)
���������� true, ���� ���� filename - �����������.
�������� ������������� ������������ �����.
��������� :
bool is_executable(string filename)
���������� true, ���� ���� filename - �����������.
is_uploaded_file
�������� ������������� �����, ������������ ������� HTTP POST.
��������� :
bool is_uploaded_file(string filename)
���������� true, ���� ���� � ������ filename ��� �������� �� ������ ����������� HTTP POST.
����� ��� �������, ����� ���������, ��� ������������ �� ����� ������ �� �������� ��������� �������� �������� � ���� �������, � �������� �� �������� �� �������, ��������: /etc/passwd.
�������� ������������� �����, ������������ ������� HTTP POST.
��������� :
bool is_uploaded_file(string filename)
���������� true, ���� ���� � ������ filename ��� �������� �� ������ ����������� HTTP POST.
����� ��� �������, ����� ���������, ��� ������������ �� ����� ������ �� �������� ��������� �������� �������� � ���� �������, � �������� �� �������� �� �������, ��������: /etc/passwd.