note 100799 added to function.gzwrite

From: Date: Sun, 07 Nov 2010 20:50:19 +0000
Subject: note 100799 added to function.gzwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-173836@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. $data = fread($fp, 5000); gzwrite($fp2, $data, strlen($data)); Is the correct way to avoid issues with magic quotes. ---- Server IP: 69.147.83.197 Probable Submitter: 174.18.42.80 ---- Manual Page -- http://www.php.net/manual/en/function.gzwrite.php Edit -- https://master.php.net/note/edit/100799 Del: integrated -- https://master.php.net/note/delete/100799/integrated Del: useless -- https://master.php.net/note/delete/100799/useless Del: bad code -- https://master.php.net/note/delete/100799/bad+code Del: spam -- https://master.php.net/note/delete/100799/spam Del: non-english -- https://master.php.net/note/delete/100799/non-english Del: in docs -- https://master.php.net/note/delete/100799/in+docs Del: other reasons-- https://master.php.net/note/delete/100799 Reject -- https://master.php.net/note/reject/100799 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173836) next »