note 129864 added to function.copy

From: Date: Thu, 21 Nov 2024 17:20:17 +0000
Subject: note 129864 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-221663@lists.php.net to get a copy of this message
To copy a file and preserve the file timestamps: <?php if (copy($from, $to)) touch($to, filemtime($from), fileatime($from)); ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.84.18 (proxied: 136.144.43.15) ---- Manual Page -- https://php.net/manual/en/function.copy.php Edit -- https://main.php.net/note/edit/129864 Del: integrated -- https://main.php.net/note/delete/129864/integrated Del: useless -- https://main.php.net/note/delete/129864/useless Del: bad code -- https://main.php.net/note/delete/129864/bad+code Del: spam -- https://main.php.net/note/delete/129864/spam Del: non-english -- https://main.php.net/note/delete/129864/non-english Del: in docs -- https://main.php.net/note/delete/129864/in+docs Del: other reasons-- https://main.php.net/note/delete/129864 Reject -- https://main.php.net/note/reject/129864 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221663) next »