gdesclaux
05-09-2001, 12:39 PM
Hi,
I don't really understood the behaviour of the /tmp directory...
I can make this : $tempfile = tempnam("/tmp", "tmpfl");
and because the PHP engine is > 4.0.3 the tempnam function return a temporary name file AND CREATE THE FILE.
BUT : I CANNOT make this : $fd = fopen($tempfile, 'w');
$fd is always FALSE...
So ? What's happen ? Why I cannot read or write in the /tmp with the fopen function ?
It's the same situation with /big/dom/tmp
What can we really do in these temp directories ?
Thanks
I don't really understood the behaviour of the /tmp directory...
I can make this : $tempfile = tempnam("/tmp", "tmpfl");
and because the PHP engine is > 4.0.3 the tempnam function return a temporary name file AND CREATE THE FILE.
BUT : I CANNOT make this : $fd = fopen($tempfile, 'w');
$fd is always FALSE...
So ? What's happen ? Why I cannot read or write in the /tmp with the fopen function ?
It's the same situation with /big/dom/tmp
What can we really do in these temp directories ?
Thanks