note 37373 deleted from features.safe-mode by vincent
| From: | vincent@php.net | Date: | Wed, 12 Nov 2003 15:29:35 +0000 |
| Subject: | note 37373 deleted from features.safe-mode by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60305@lists.php.net to get a copy of this message | ||
Note Submitter: matthias@remove-this.hrz.uni-kassel.de
----
Beware: Safe mode will not permit you to create new files in directories which have different owner
than the owner of the script. This typically applies to /tmp, so contrary to Unix intuition, you
will not be able to create new files there (even if the /tmp rights are set correctly).
If you need to write into files in /tmp (for example to put logfiles of your PHP application there)
create them first on the command line by doing a
touch /tmp/whatever.log
as the same user who owns the PHP script. Then, provided the rest is configured correctly, the PHP
script will be able to write into that file.