note 97239 added to function.touch
| From: | chris dot dallaire at csquaredsystems dot com | Date: | Fri, 09 Apr 2010 14:41:54 +0000 |
| Subject: | note 97239 added to function.touch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168082@lists.php.net to get a copy of this message | ||
I needed to use this to touch the /etc/cron.d directory when I updated some files in there. I know
the docs say this isn't necessary, but I'm finding that i need to do it in order form my
changes to be picked up quickly.
I ran into the permissions error as well and I found that using chmod 777 /etc/cron.d does the
trick.
So, you should be able to use the PHP touch function on a directory that has open write access.
Of course, this isn't the most secure approach, but in our application it's not a big deal
for that folder to not be super secure.
----
Server IP: 69.147.83.197
Probable Submitter: 173.14.161.21
----
Manual Page -- http://www.php.net/manual/en/function.touch.php
Edit -- https://master.php.net/note/edit/97239
Del: integrated -- https://master.php.net/note/delete/97239/integrated
Del: useless -- https://master.php.net/note/delete/97239/useless
Del: bad code -- https://master.php.net/note/delete/97239/bad+code
Del: spam -- https://master.php.net/note/delete/97239/spam
Del: non-english -- https://master.php.net/note/delete/97239/non-english
Del: in docs -- https://master.php.net/note/delete/97239/in+docs
Del: other reasons-- https://master.php.net/note/delete/97239
Reject -- https://master.php.net/note/reject/97239
Search -- https://master.php.net/manage/user-notes.php