note 36646 rejected from function.fopen by didou

From: Date: Fri, 17 Oct 2003 07:46:01 +0000
Subject: note 36646 rejected from function.fopen by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58747@lists.php.net to get a copy of this message
Note Submitter: youngsoo@freechal.com ---- When treating binary mode file in PHP, is it impossible to create and write binary mode file? I can see many examples how to read binary file like image, but It dosen't work write. for example <? $data = "I am a boy."; $length = strlen($data); $fp = fopen("./temp_binary.dat", "wb"); fwrite($fp,$data,$length); fclose($fp); ?> At above script, generated file mode is not binary, but text.

« previous php.notes (#58747) next »