Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> zlib [ gunzip ]
ennics
post 15.02.2005, 18:30:29
Post #1





Grupa: Zarejestrowani
Postów: 312
Pomógł: 0
Dołączył: 29.12.2004

Ostrzeżenie: (0%)
-----


używam apache2triad, php Version 5.0.3, zlib (był w pakiecie) 1.1.4,
phpinfo mówi:
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

funkcja wygląda tak:
  1. <?php
  2.  
  3. function uncompress( $srcFileName, $dstFileName, $fileSize )
  4. {
  5.    // getting content of the compressed file
  6.    $zp = gzopen( $srcFileName, &#092;"r\" );
  7.    $data = fread ( $zp, $fileSize );
  8.    gzclose( $zp );
  9.    
  10.    // writing uncompressed file
  11.    $fp = fopen( $dstFileName, &#092;"w\" );
  12.    fwrite( $fp, $data );
  13.    fclose( $fp );
  14. }
  15.  
  16. uncompress( &#092;"files/open_orders.txt.gz\", \"files/open_orders.txt\", filesize( \"files/open_orders.txt\" ) );
  17.  
  18. ?>

... z manuala rolleyes.gif
do tego komunikat:
Kod
Warning: filesize() [C:\apache2triad\php\manual\function.filesize.html]: stat failed for open_orders.txt in C:\apache2triad\htdocs\kpi\core\ftpconn.php on line 58 Warning: fread() [C:\apache2triad\php\manual\function.fread.html]: Length parameter must be greater than 0. in C:\apache2triad\htdocs\kpi\core\ftpconn.php on line 49

niestety po rozpakowaniu plik txt jest pusty... why?

Ten post edytował ennics 15.02.2005, 18:51:58


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 31.07.2025 - 09:27