Re: [PHP] /tmp/directory

[email protected] (Larry Martell)
Newsgroups php.general
Message-ID <CACwCsY6PC=ScJjrS5w5WaVDbvBKk+k9bw6J8FGhToZUA6k7mGA@mail.gmail.com>
On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell
<[email protected]> wrote:
> On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling <[email protected]> wrote:
>> On Jul 22, 2013, at 11:20 AM, Tedd Sperling <[email protected]> wrote
>>> Hi gang:
>>>
>>> I should know this, but I don't.
>>>
>>> Where is the /tmp/ directory?
>>>
>>> You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write to the /tmp/ directory anymore -- they did at one time.
>>>
>>> So, how do I fix it?
>>>
>>> Cheers,
>>>
>>> tedd
>>
>> Let me add -- the PHP version I am working with is 4.3.10.
>>
>> I know...
>
> df /tmp should show you where it's mounted.

And sys_get_temp_dir() will tell you the path.

# php
<?
print sys_get_temp_dir()
?>

/tmp
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.