[imp] Attachment woes..

Chuck Hagenbuch chuck@horde.org
Tue, 28 Nov 2000 15:37:37 -0500


Quoting Jason Keltz <jas@cs.yorku.ca>:

> The problem is that you can set your "upload_tmp_dir" in php.ini (which
> defaults to /tmp if you do not set anything) to anything you want --- so
> long as its "/var/tmp"!  In other words, (and someone *please* correct me
> if I'm wrong here), no matter you set "upload_tmp_dir" to, it seems to me
> that the file is first written to "/var/tmp", and then IMP tries to open
> it in the proper location.  If "upload_tmp_dir" is not set, this means
> that the attachment is first written to "/var/tmp", and then IMP tries to
> open it from "/tmp".  If you set "upload_tmp_dir" to "/var/tmp", this will
> fix the problem, but a more general fix (and understanding of the problem)
> is required.

Where the file is first written is a php thing - we have no control over it. If 
php is ignoring upload_tmp_dir settings, then you need to report this to the 
php folks.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues