#18967 [Fbk->NoF]: base64_encode troubles

From: Date: Sat, 21 Sep 2002 06:56:44 +0000
Subject: #18967 [Fbk->NoF]: base64_encode troubles
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19944@lists.php.net to get a copy of this message
ID: 18967 Updated by: sniper@php.net Reported By: fxdc@wanadoo.fr -Status: Feedback +Status: No Feedback Bug Type: *General Issues Operating System: Linux pomerol 2.2.19 #8 SMP PHP Version: 4.1.2 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-08-19 17:23:06] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-08-19 13:05:27] fxdc@wanadoo.fr Hello sorry for my poor English. My problem : I use base64_encode to encode a file for send by E-mail. I use the following code to find the problem. $file=$name1; $fp=fopen($file,"r"); $temoin="./temoin/".time(); $fq=fopen ($temoin,"w"); $attachmentorig=fread($fp,filesize($file)); $attachment=base64_encode($attachmentorig); $controle= "file name :".$file."\r\n file size:".filesize($file)."\r\n file content:".$attachmentorig."\r\n file encoded :".$attachment. fclose($fp); fwrite ($fq,$controle); fclose ($fq); So sometimes, Name, size, file content are exactly the sames, but file encoded is different. Can you explain me please ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18967&edit=1

« previous php.bugs (#19944) next »