test.txt
-rw-r--r--  1 root root 14 Jul 19 16:33 test.txt

<?
$filename = "test.txt";
if(@touch($filename)) {
        echo $filename."ok";
} else {
        echo "fail";
}
?>

php touch.php

Content-type: text/html
X-Powered-By: PHP/4.3.9

ll test.txt
-rw-r--r--  1 root root 14 Jul 19 16:37 test.txt


신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret