<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FFile_Directory%2FFile_Property</id>
		<title>PHP/File Directory/File Property - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FFile_Directory%2FFile_Property"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/File_Property&amp;action=history"/>
		<updated>2026-04-05T04:02:51Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/File_Directory/File_Property&amp;diff=508&amp;oldid=prev</id>
		<title> в 10:37, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/File_Property&amp;diff=508&amp;oldid=prev"/>
				<updated>2010-05-26T10:37:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:37, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/File_Directory/File_Property&amp;diff=509&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/File_Property&amp;diff=509&amp;oldid=prev"/>
				<updated>2010-05-26T07:04:26Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Checking the Mode of a File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $myfile = &amp;quot;./test.txt&amp;quot;;&lt;br /&gt;
  if (is_readable ($myfile)) {&lt;br /&gt;
    echo &amp;quot;The file can be read!&amp;quot;, &amp;quot;\n&amp;quot;;&lt;br /&gt;
  } else {&lt;br /&gt;
    echo &amp;quot;The file cannot be read.&amp;quot;, &amp;quot;/n&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  if (is_writable ($myfile)) {&lt;br /&gt;
    echo &amp;quot;The file can be used for writing!&amp;quot;, &amp;quot;/n&amp;quot;;&lt;br /&gt;
  } else {&lt;br /&gt;
    echo &amp;quot;The file cannot be used for writing.&amp;quot;, &amp;quot;/n&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
  if (is_executable ($myfile)) {&lt;br /&gt;
    echo &amp;quot;The file is executable!&amp;quot;, &amp;quot;\n&amp;quot;;&lt;br /&gt;
  } else {&lt;br /&gt;
    echo &amp;quot;The file is not executable.&amp;quot;, &amp;quot;\n&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Determining the Size of a File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $myfile = &amp;quot;./test.txt&amp;quot;;&lt;br /&gt;
  if (file_exists ($myfile)) {&lt;br /&gt;
    $checksize=filesize ($myfile);&lt;br /&gt;
    echo &amp;quot;$checksize&amp;quot;;&lt;br /&gt;
  } else {&lt;br /&gt;
    echo &amp;quot;The file doesn&amp;quot;t exist!&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File accessed time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;File accessed time&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f was accessed on &amp;quot;.date( &amp;quot;D d M Y g:i A&amp;quot;, fileatime( $f ) ).&amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File changed time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;File changed time&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f was changed on &amp;quot;.date( &amp;quot;D d M Y g:i A&amp;quot;, filectime( $f ) ).&amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==filegroup: Gets file group==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $gid = filegroup(&amp;quot;/etc/passwd&amp;quot;);&lt;br /&gt;
   // Returns &amp;quot;0&amp;quot; on Unix, because root usually has GID of 0.&lt;br /&gt;
   echo $gid;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File last accessed time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $file = &amp;quot;./text.txt&amp;quot;;&lt;br /&gt;
   echo &amp;quot;File last accessed: &amp;quot;.date(&amp;quot;m-d-y g:i:sa&amp;quot;, fileatime($file));&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File last changed time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $file = &amp;quot;./text.txt&amp;quot;;&lt;br /&gt;
   echo &amp;quot;File inode last changed: &amp;quot;.date(&amp;quot;m-d-y g:i:sa&amp;quot;, fileatime($file));&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File last updated time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $file = &amp;quot;./demoCSV.csv&amp;quot;;&lt;br /&gt;
   echo &amp;quot;File last updated: &amp;quot;.date(&amp;quot;m-d-y g:i:sa&amp;quot;, filemtime($file));&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==File modified time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;File modified time&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f was modified on &amp;quot;.date( &amp;quot;D d M Y g:i A&amp;quot;, filemtime( $f ) ).&amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get file permission==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   echo substr(base_convert(fileperms(&amp;quot;/etc/passwd&amp;quot;), 10, 8), 3);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get the file owner==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $uid = fileowner(&amp;quot;/etc/passwd&amp;quot;);&lt;br /&gt;
   // Returns &amp;quot;0&amp;quot; on Linux, as root typically has UID of 0.&lt;br /&gt;
   &lt;br /&gt;
   echo $uid;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get the file size: filesize==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Get the file size: filesize&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(filesize($f)).&amp;quot; bytes&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it a file: is_file()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Is it a file: is_file()&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(is_file( $f )?&amp;quot;&amp;quot;:&amp;quot;not &amp;quot;).&amp;quot;a file&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is the file a directory: is_dir()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Is the file a directory: is_dir()&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(is_dir( $f )?&amp;quot;&amp;quot;:&amp;quot;not &amp;quot;).&amp;quot;a directory&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is the file executable: is_executable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Is the file executable: is_executable&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(is_executable( $f )?&amp;quot;&amp;quot;:&amp;quot;not &amp;quot;).&amp;quot;executable&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is the file readable: is_readable()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Is the file readable: is_readable()&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(is_readable( $f )?&amp;quot;&amp;quot;:&amp;quot;not &amp;quot;).&amp;quot;readable&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is the file writable: is_writable()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Is the file writable: is_writable()&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;test.txt&amp;quot;;&lt;br /&gt;
outputFileTestInfo( $file );&lt;br /&gt;
function outputFileTestInfo( $f ){&lt;br /&gt;
   if ( ! file_exists( $f ) ){&lt;br /&gt;
       print &amp;quot;$f does not exist&amp;lt;BR&amp;gt;&amp;quot;;&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
   print &amp;quot;$f is &amp;quot;.(is_writable( $f )?&amp;quot;&amp;quot;:&amp;quot;not &amp;quot;).&amp;quot;writable&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>