designedfree4u Posted May 23, 2008 Share Posted May 23, 2008 I'm trying to echo a RTF Doc like Word. I can echo a .txt but when i echo a word doc "When i change to mccain.doc instead of mccain.txt" it's all charactors. Can this be done. <?php $file = "http://jaybirdfolio.com/News%20Template/TodaysNews/MainNews/mccain.txt"; $fp = fopen($file, "r"); while(!feof($fp)) { $data = fgets($fp, 1024); echo $newtext; echo substr($data,0,80); // Echos first 80 characters } fclose($fp); ?> Thanks Link to comment https://forums.phpfreaks.com/topic/106982-echo-rtf-word-document/ Share on other sites More sharing options...
blackcell Posted May 23, 2008 Share Posted May 23, 2008 What do you mean all characters? Like all character just without the formatting? Link to comment https://forums.phpfreaks.com/topic/106982-echo-rtf-word-document/#findComment-548365 Share on other sites More sharing options...
designedfree4u Posted May 23, 2008 Author Share Posted May 23, 2008 Sorry, Mumbo jumbo unreadable text. Link to comment https://forums.phpfreaks.com/topic/106982-echo-rtf-word-document/#findComment-548372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.