����������
WEB - ������

www.spravkaweb.ru Rambler's Top100
 ï¿½ï¿½ ����������: �������/PHP/������ � �������.������� ��� ����������� ����� ������Ðàñïå÷àòàòü 
�������
�������
����� ���
HTML
JavaScript
VBScript
CSS
Flash
Perl
PHP
MySQL
SSI
VRML
�������������
������
Download
�����
��������
������
�������� ���
�����:
��������
Subscribe.Ru:

PHP

<--����� | ��������� � ������ | ������-->
������ � �������
������� ��� ����������� ����� ������
file_exists
��������� ������������� ����������� �����.

��������� :
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.
����� ������ ������ ����� ��������� ���� �� ��������� ��������:
file    - ������� ����;
dir     - �������;
link    - ������������� ������;
fifo    - fifo-�����;
block   - ������-��������������� ����������;
char    - ���������-��������������� ����������;
unknown - ����������� ��� �����;

is_file
�������� ������������� �������� �����.

��������� :
bool is_file(string filename)

���������� true, ���� filename - ������� ����.

is_dir
�������� ������������� ��������.

��������� :
bool is_dir(string filename)

���������� true, ���� ������� filename ����������.

is_link
�������� ������������� ������������� ������ �� ����.

��������� :
bool is_link(string filename)

���������� true, ���� filename - ������������� ������.

������� �� �������� ��� Windows.

is_readable
�������� ������������� �����, ���������� ��� ������.

��������� :
bool is_readable(string filename)

���������� true, ���� ���� ����� ���� ������ ��� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.

is_writeable
�������� ������������� �����, ���������� ��� ������.

��������� :
bool is_writeable(string filename)

���������� true, ���� � ���� ����� ������.
������ PHP ������������ ������ � ����� � ������������ ������������, ������������ web-������ (����� "nobody"). ����������� ������������ ������ ����������� � ������.

is_executable
�������� ������������� ������������ �����.

��������� :
bool is_executable(string filename)

���������� true, ���� ���� filename - �����������.

is_uploaded_file
�������� ������������� �����, ������������ ������� HTTP POST.

��������� :
bool is_uploaded_file(string filename)

���������� true, ���� ���� � ������ filename ��� �������� �� ������ ����������� HTTP POST.
����� ��� �������, ����� ���������, ��� ������������ �� ����� ������ �� �������� ��������� �������� �������� � ���� �������, � �������� �� �������� �� �������, ��������: /etc/passwd.
�� ���������� ����� ����� ������� "PHP 4. ����������� ����������."
www.piter.com
������ / � ����������
 
Download
Ñêà÷àòü ñïðàâî÷íèê ïî PHP
��� ������:
09.11.2004
���������� � ������� CSS. �������� ��� ���������� ����������, �� ��� ������, ����������� �������� Internet Explorer: ������������ ��������, ��� ��������������. ���� ������ ��� ��������� ���������, �������� ��������� ������������� � ���������� ���������.
�����������:
���� ��������� � ������� �����:
��������.
������������.
��� ����.
������ � �������.
�������.
������ ���� �� ���������.
��������:
Rambler's Top100
Ñäåëàòü ñòðàíèöó ñòàðòîâîé ������� �������� ���������
Äîáàâèòü ñòðàíèöó â èçáðàííîå �������� ���� � ���������
Ñîîáùèòü îá íàéäåííîé îøèáêå �������� �� ������