tmpfile

set directory of tmpfile() on Linux

A program I use is failing when it uses tmpfile() for large files. The problem seems to be I don't have permission to create large files in /tmp, which this function uses by default. So is there a way, perhaps with an environmental variable, that I can make tmpfile() write to a different location? Edit: the program in question is sox, w...

upload tmp folder

Hi, when upload an image is stored in tmp folder, but because i am in shared hosting i can not change the upload_dir in php.ini. Is it possible after image store in common tmp folder show it to user <img src="path to tmp folder" /> (Which is the path to tmp folder) Thanks ...

var arg list to tempfile, why is it needed?

I have this code inside a constructor of a class (not written by me) and it writes a variable arg list to a tmp file. I wondered why this would be needed? The tmpfile is removed after this ctor goes out of scope and the var arg list sits inside the m_str vector. Can someone suggest a better way of doing this without the use of a tmp...

tmpnam warning saying it is dangerous

I get this warning saying that tmpnam is dangerous, but I would prefer to use it, since it can be used as is in Windows as well as Linux. I was wondering why it would be considered dangerous (I'm guessing it's because of the potential for misuse rather than it actually not working properly). Thanks in advance! ...