Mailinglisten-Archive |
hi jens,
> > $download = sprintf("%s.zip", $auth->auth["uname"]);
> > $filename = sprintf("../tmp/%s", $download);
> >
> > $execstring = sprintf("zip -9 -j %s ", $filename);
> >
> > $db = new DB_BLABLA;
> >
> > $query = sprintf( "select * from auswahl where kunden_id = '%s'",
> > $auth->auth["uid"]);
> > $db->query($query);
> >
> > while ($db->next_record())
> > {
> > $execstring = $execstring . "../highend/" . $db->f("name") .
".jpg
> > ";
> > }
> >
> > exec($execstring);
> > }
> >
> > header("Content-Type: application/zip-compressed");
> > header("Content-Disposition: inline; filename=\"".$download."\"");
> >
> > readfile($filename);
>
> geht das ganze auch unter Windows? Apache mit PHP4 als Modul
(php4.0.2-dev)
>
das müßte auch unter windows funktionieren, sicherlich wirst du dann
pkzip
benutzen. gib mal ne rückmeldung, würde mich auch interessieren.
gruesse/regards
andreas krahn :-)
--
akotec - internet-serviceleistungen & multimedia-produktionen
andreas krahn - moorstrasse 14 - 21614 buxtehude - germany
tel.: 04161/722260 - fax: 04161/722259 - email: akrahn_(at)_akotec.de
php::bar PHP Wiki - Listenarchive