★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.touch.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: touch
View the source code for this pageSearch the site



Previous page
 tempnam
 Updated
Sat, 12 Aug 2000
umask 
Next page


touch

(PHP3 , PHP4 )

touch -- ファイルの最終更新日をセットする

説明

int touch (string filename, int time)

filenameで指定されたファイルの 最終更新日を、timeで指定された値に セットしようと試みます。オプションのtimeが指定されない場合、 現在時刻を使用します。

ファイルが存在しない場合、ファイルが生成されます。

成功するとtrue、そうでない場合にfalseを返します。

例 1. touch()の例


if ( touch($FileName) ) {
  print "$FileName modification time has been changed to todays date and time";
} else {
  print "Sorry Could Not change modification time of $FileName";
}
      


 About Notes


Previous page
 tempnam
 Updated
Sat, 12 Aug 2000
umask 
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.