Re: transfer files that doesent exists

From: Date: Mon, 17 Mar 2003 06:23:18 +0000
Subject: Re: transfer files that doesent exists
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-26414@lists.php.net to get a copy of this message
On Saturday 15 March 2003 12:42, Lars Rasmussen wrote: This has nothing to do with php and db so it should have been posted to the php-general list. > I'm about to make an open source backup module that works on php... > The thing i want is for php to execute this command "tar cvzfp > backup.tar.gz dir/*" BUT IN A SPECIAL WAY! > > I don't want the file backup.tar.gz to be on the server, it's supposed > to either be deleted as fast as the user downloaded the file, or best of > all, i want php to do something with the command such that it is ONLY > output, and might be in the header....does anyone know how to do that ?? > > If i did'nt explain right please let me know.... You can have tar _extract_ an archive onto stdout. But I don't think you can _create_ an archive and have it go to stdout. So you would _have_ to create a temporary file and delete it when you're finished with it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Every path has its puddle. */

« previous php.db (#26414) next »