Re: [webmin-devel] Temporary files

Jamie Cameron <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On Fri, 2004-07-23 at 18:14, Sandro Dentella wrote:
> 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...

Yes, that sounds like a good solution. You could have a simple script
that just opens and outputs the temp file, sort of like the
file/show.cgi script.

 - Jamie




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