note 87356 added to function.touch

From: Date: Mon, 01 Dec 2008 21:59:50 +0000
Subject: note 87356 added to function.touch
Groups: php.notes 
Request: Send a blank email to php-notes+get-147497@lists.php.net to get a copy of this message
Only way to change modification date in catalogue is to create file in via touch() and dalete it with unlink(): $dir = 'temp'; $files1 = scandir($dir); $files1 = array_slice($files1, 2); foreach ($files1 as $key => $val) { if (!is_dir($val)) continue; if (!touch($val)) { touch($val . "/plik.txt"); unlink($val . "/plik.txt"); } } ---- Server IP: 82.177.164.100 Probable Submitter: 83.25.99.39 ---- Manual Page -- http://www.php.net/manual/en/function.touch.php Edit -- https://master.php.net/note/edit/87356 Del: integrated -- https://master.php.net/note/delete/87356/integrated Del: useless -- https://master.php.net/note/delete/87356/useless Del: bad code -- https://master.php.net/note/delete/87356/bad+code Del: spam -- https://master.php.net/note/delete/87356/spam Del: non-english -- https://master.php.net/note/delete/87356/non-english Del: in docs -- https://master.php.net/note/delete/87356/in+docs Del: other reasons-- https://master.php.net/note/delete/87356 Reject -- https://master.php.net/note/reject/87356 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147497) next »