Re: Write, Zip and Email
| From: | Jason Wong | Date: | Tue, 24 Jun 2003 11:38:50 +0000 |
| Subject: | Re: Write, Zip and Email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152588@lists.php.net to get a copy of this message | ||
On Tuesday 24 June 2003 18:36, TWSC HQ wrote:
> Is it possible to write to files on a server via a browser, then zip those
> files up and email them to the user?
>
> Detail:
> I want to enable my website visitors to customize a php script with their
> details, all via field inputs. Write that personal info into the script
> files << upto here it's easy >>
> but how does the server zip the package up,
To create zip archives you can use exec() (and friends) to call a command-line
zip archive creating program. If you don't have access to one and for some
reason are unable to install one then I believe that there is a pure PHP
class (does not rely on external programs) which allows you to work with zip
archives.
> email the package to the visitor and reset the values for the next user?
Make sure that the files that you create are uniquely named (uniq()) then you
don't need to worry about how to "reset the values".
--
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-general
------------------------------------------
/*
*/