Re: [PHP] /tmp/directory

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>
On Jul 23, 2013, at 9:55 AM, Daniel Brown <[email protected]> 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


_____________________
[email protected]
http://sperling.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.