#26086 [Fbk->NoF]: Weird Output
| From: | sniper@php.net | Date: | Mon, 17 Nov 2003 23:16:57 +0000 |
| Subject: | #26086 [Fbk->NoF]: Weird Output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50536@lists.php.net to get a copy of this message | ||
ID: 26086
Updated by: sniper@php.net
Reported By: mite_tea_big at hotmail dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Output Control
Operating System: Windows XP
PHP Version: 4.3.3
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:
------------------------------------------------------------------------
[2003-11-03 03:03:31] moriyoshi@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-11-02 17:47:29] mite_tea_big at hotmail dot com
Description:
------------
I was trying out different methods to input data from a file.
I was using file_get_contents to read a file, then echo to output the
string. The thing is, it seems to be outputting extra characters,
mostly asian characters.
It looks as if the html tags and other text are being changed to "?".
if I remove all other non-php text, the extra output does not show up.
Reproduce code:
---------------
<?php
$data = file_get_contents("Library.txt");
echo $data;
?>
<html>
</html>
text.txt
--------
ABCDEFGHIJKLMONPQRSTUV
Expected result:
----------------
ABCDEFGHIJKLMONPQRSTUV
Actual result:
--------------
ABCDEFGHIJKLMNOPQRSTUVWXYZ
¸ñÔ¡㹬਍⼼¬Iാഊ
View Source
-----------
ABCDEFGHIJKLMNOPQRSTUVWXYZ
?????????
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26086&edit=1