save to disk functionality

Lisa Seelye lisa@gentoo.org
Sun, 02 Nov 2003 22:15:27 -0500


--=-llEIXfXA7U5hhS68tyyh
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2003-11-02 at 21:33, Brad Fitzpatrick wrote:
> You could even make the db write not painful by doing it after the
> client's already been sent the request.  In mod_perl that's the cleanup
> handler.  Not sure what they call it in PHP.

To accomplish this with PHP you might want to flush all the data through
the pipe and then write to the database...  Untested, though. (Might be
a problem if the page isn't completely loaded though.)
<?
-read session-
-prepare page (begin buffering)-
-flush data to user-
-write session-
?>

--=20
Regards,
-Lisa
<Vix ulla tam iniqua pax, quin bello vel aequissimo sit potior>

--=-llEIXfXA7U5hhS68tyyh
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/pchOy0a1Vh5Jb8URApGEAJ9m9nh1YwAxfIRiGuAAv+8RYql8CACgwlG3
VAqznP3M1wuFOFGR39DCSZs=
=UXtH
-----END PGP SIGNATURE-----

--=-llEIXfXA7U5hhS68tyyh--