ID:               23878
 Updated by:       [EMAIL PROTECTED]
 Reported By:      avaurus at schipplock dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Zlib Related
 Operating System: Windows 2000
 PHP Version:      4.3.2
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



Previous Comments:
------------------------------------------------------------------------

[2003-05-29 17:54:27] avaurus at schipplock dot de

<?php

# look at this : 
        # -----------------
        # try to use just strings instead of variables -> will work :>
        # try to use variables instead of just strings -> will NOT work :/
        # -----------------
        # it is really a mess with some functions of php under windows
        $fontfile = str_rot13($id);
        $gzfilename = str_replace(".ttf","",$fontfile);
        
        header("Content-Disposition: attachment;
filename=\"$gzfilename.gz\"");
        header("Content-type: application/x-gzip");

    $data = implode("", file("fonts/".$fontfile));
    $gzdata = gzencode($data, 9);
    $fp = fopen("fonts/".$gzfilename.".gz", "w");
    fwrite($fp, $gzdata);
    fclose($fp);
    
        readfile("fonts/".$gzfilename.".gz");
?>

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23878&edit=1

Reply via email to