note 24995 added to function.touch
| From: | illbeback at later dot com | Date: | Sat, 07 Sep 2002 07:23:29 +0000 |
| Subject: | note 24995 added to function.touch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36288@lists.php.net to get a copy of this message | ||
My php script has this:
touch ("/var/www/html/test.log");
But when it runs on my browser, it says this:
Warning: unable to create file /var/www/html/test.log because Permission denied in
/var/www/html/index3.php on line 5
Any way to get permissions for a file that doesn't exist on the system already? (eg. test.log)
--
http://www.php.net/manual/en/function.touch.php
http://master.php.net/manage/user-notes.php?action=edit+24995
http://master.php.net/manage/user-notes.php?action=delete+24995
http://master.php.net/manage/user-notes.php?action=reject+24995