On Tuesday 21 August 2001 17:10, Ray Clouse wrote:
> So we need to keep as much compressed as possible, but we have to
> uncompress the data for the webpages to use it. The PHP webpages on
> the server use the uncompressed data to generate plots. The data is
> never sent to the user, just the plots.
>
> The main problem I'm having is with page resolution. If I say:
>
> print("<SCRIPT>jsPopupWindow('Starting UNZIP');</SCRIPT>\n");
>
> $gunzipcmdline = "gunzip /PATHTO/MYDATA";
> $result = exec("$gunzipcmdline", $execout, $execretval);
Uncompressing should not take that much time. And you can speed it up by
using the zlib functions instead of a exec (gunzip ...)
http://php.net/gzopen
Also, if the file to be uncompressed is very large, you should cache the
results (the generated plots).
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
Install once, run forever. Linux.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]