note 100799 modified in function.gzwrite by thiago

From: Date: Mon, 08 Nov 2010 15:15:24 +0000
Subject: note 100799 modified in function.gzwrite by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173857@lists.php.net to get a copy of this message
Read the description of gzwrite() very carefully. If the 'length' option is not specified, then the input data will have slashes stripped on systems where magic quotes are enabled. This is important information to know when compressing files. <?php $data = fread($fp, 5000); gzwrite($fp2, $data, strlen($data)); ?> Is the correct way to avoid issues with magic quotes. --was-- Read the description of gzwrite() very carefully. If the 'length' option is not specified, then the input data will have slashes stripped on systems where magic quotes are enabled. This is important information to know when compressing files. $data = fread($fp, 5000); gzwrite($fp2, $data, strlen($data)); Is the correct way to avoid issues with magic quotes. http://php.net/manual/en/function.gzwrite.php

« previous php.notes (#173857) next »