Re: /tmp/directory
| From: | Tedd Sperling | Date: | Tue, 23 Jul 2013 17:00:27 +0000 |
| Subject: | Re: /tmp/directory | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321702@lists.php.net to get a copy of this message | ||
On Jul 23, 2013, at 9:55 AM, Daniel Brown <danbrown@php.net> wrote:
>>
>
> If it's /tmp, it's /tmp. The leading slash indicates that it's in
> the filesystem root. However, if it's just tmp, then it could - and
> probably is - under the client's home directory. Unless they're
> chrooted; then it could be displayed as /tmp, but would actually be
> virtualized by the OS, where /tmp isn't really /tmp, but could be
> /var/virtfs/user/tmp.
>
> Confusing? Sure. Off-topic for the list? Sort of, but that's
> easy enough to change.
>
> Since you can't use get_sys_temp_dir() on 4.3.10, you should
> instead see if $_ENV contains an array key for TMP, TMPDIR, or TEMP.
> Or, if you'd rather, you can use getenv('TMP') and the like. It
> doesn't mean that you'll get any useful information back (or anything
> at all, necessarily), but it's another thing to try when using such an
> antiquated version (I believe it was released at the end of 2004).
Thanks Daniel.
tedd
_____________________
tedd@sperling.com
http://sperling.com