★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.is-file.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to ファイルシステム
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
ファイルシステム
* basename
* chgrp
* chmod
* chown
* clearstatcache
* copy
* delete
* dirname
* diskfreespace
* fclose
* feof
* fgetc
* fgetcsv
* fgets
* fgetss
* file
* file_exists
* fileatime
* filectime
* filegroup
* fileinode
* filemtime
* fileowner
* fileperms
* filesize
* filetype
* flock
* fopen
* fpassthru
* fputs
* fread
* fscanf
* fseek
* fstat
* ftell
* ftruncate
* fwrite
* set_file_buffer
* is_dir
* is_executable
* is_file
* is_link
* is_readable
* is_writeable
* link
* linkinfo
* mkdir
* pclose
* popen
* readfile
* readlink
* rename
* rewind
* rmdir
* stat
* lstat
* realpath
* symlink
* tempnam
* touch
* umask
* unlink
Manual: is_file
View the source code for this pageSearch the site



Previous page
 is_executable
 Updated
Sat, 12 Aug 2000
is_link 
Next page


is_file

(PHP3 , PHP4 )

is_file -- 通常ファイルかどうかを調べる

説明

bool is_file (string filename)

filenameが存在して、かつそれが 通常ファイルであればtrueを返します。

この関数の結果はキャッシュされます。詳細は、 clearstatcache() を参照下さい。

is_dir()およびis_link() も参照下さい。


User Contributed Notes: is_file


amraam@ao.net
11-Mar-2000 06:56
It seems that is_file doesn't return true for a file that is 0 bytes. Perhaps it is something with the file system. I am using IIS 3.0 on an NT4 box. I worked around it using !is_dir($filename) but that seems a clunky way to do it. Any thoughts are appreciated.


spam@gawan.dk
15-Apr-2000 09:19
When I'm checking a file in a dir like '../dir' or '../dir/' this function returns false. In this case it gives better results using "if(!is_dir('../dir'))" than "if(is_file('../dir'))" .


 About Notes


Previous page
 is_executable
 Updated
Sat, 12 Aug 2000
is_link 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.