champoi Posted November 28, 2008 Share Posted November 28, 2008 my program opens a text file that was stored earlier, but the problem is that when i echo it, the apostrophe that was stored in the text file, when echoed, is replaced by a question mark in the page displayed, help! these are my codes: <?php $f1 = fopen($directory."/geninfo.txt","r"); echo "<p>".nl2br(fread($f1,"23554432"))."</p>"; fclose($f1); ?> Link to comment https://forums.phpfreaks.com/topic/134618-apostrophe-fread-problem-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.