note 85313 added to function.touch
| From: | BessE dot R dot Wisser at osu1 dot php dot net | Date: | Mon, 25 Aug 2008 20:20:26 +0000 |
| Subject: | note 85313 added to function.touch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143813@lists.php.net to get a copy of this message | ||
"Glen: In unix on the command-line, you can touch files you don't own - but like other
comments on this page state - PHP's built in touch won't work."
No, you can not modify files you don't have write access to in a multi-user environment, ever,
under any circumstances. The reason why you fail to do this "in PHP" is because your httpd
is most likely running as a "shared" setup, running as nobody/nobody, and your user's
files aren't world-writable, and they are not owned by nobody/nobody. Change your required
files to be world-writable and you can touch() them, and more.
----
Server IP: 80.67.2.2
Probable Submitter: 83.227.160.33
----
Manual Page -- http://www.php.net/manual/en/function.touch.php
Edit -- https://master.php.net/note/edit/85313
Del: integrated -- https://master.php.net/note/delete/85313/integrated
Del: useless -- https://master.php.net/note/delete/85313/useless
Del: bad code -- https://master.php.net/note/delete/85313/bad+code
Del: spam -- https://master.php.net/note/delete/85313/spam
Del: non-english -- https://master.php.net/note/delete/85313/non-english
Del: in docs -- https://master.php.net/note/delete/85313/in+docs
Del: other reasons-- https://master.php.net/note/delete/85313
Reject -- https://master.php.net/note/reject/85313
Search -- https://master.php.net/manage/user-notes.php