Re: [webmin-devel] Temporary files
Sandro Dentella <[email protected]>
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <20040723081400.GD30681@bluff> |
On Wed, Jul 21, 2004 at 06:29:52PM +1000, Jamie Cameron wrote: > The best solution is to use Webmin's tempname function, which will > return a filename under /tmp/.webmin suitable for use as a temporary > directory. Your code would look something like : This would solve the problem of having temp space available, not to return the space as a link, the temporary space would be out of the "DocumentRoot" of webmin. I guess the only way is to implement a function that gets from the temp space and returns it, but in this way I should hanldle the header, I should know which type of file it is... This solution in fact would give me te info when the user finished downloading (the script terminates) and I can delete the file... thanks sandro *:-) -- Sandro Dentella *:-) e-mail: [email protected] http://www.tksql.org TkSQL Home page - My GPL work ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel