<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>justepri.web.id &#187; load</title>
	<atom:link href="http://justepri.web.id/tag/load/feed" rel="self" type="application/rss+xml" />
	<link>http://justepri.web.id</link>
	<description>Tips, Tricks, Computer Science, News, Reviews, Tutorials</description>
	<lastBuildDate>Thu, 21 Jan 2010 06:44:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Load File Word Document with PHP</title>
		<link>http://justepri.web.id/load-file-word-document-with-php</link>
		<comments>http://justepri.web.id/load-file-word-document-with-php#comments</comments>
		<pubDate>Wed, 15 Jul 2009 11:55:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://justepri.web.id/?p=3</guid>
		<description><![CDATA[If we only use the above code to load a  Doc file, then all the tags that should not be displayed, will be displayed. Thus, it would appear chaotic. Texts so that we do not want do not come then we have to convert first. How do I ...?


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p align="justify">You might even think about. Is PHP able to load Doc files.<br />
The answer &#8230;. it could.</p>
<p>Maybe you&#8217;ve done it using the following script:</p>
<blockquote><p><span style="font-family: monospace; line-height: 20px; font-size: 12px; color: #0000ff;">file_get_contents($filename);</span></p></blockquote>
<p>The above code will run smoothly for the file type plain text. However, it will be a problem if we file type is a word document.</p>
<p>If we only use the above code to load a  Doc file, then all the tags that should not be displayed, will be displayed. Thus, it would appear chaotic. Texts so that we do not want do not come then we have to convert first. How do I &#8230;?</p>
<p>The problem above can be overcome with the following script snippet:</p>
<blockquote>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; margin: 0px;" align="justify"><span style="font-family: 'courier new', courier; color: #0000ff;"><code>function parseWord($filename) {<br />
$fileHandle = fopen($filename, "r");<br />
$line = @fread($fileHandle, filesize($userDoc));<br />
$lines = explode(chr(0x0D),$line);<br />
$outtext = "";<br />
foreach($lines as $thisline)<br />
{<br />
$pos = strpos($thisline, chr(0x00));<br />
if (($pos !== FALSE)||(strlen($thisline)==0)){<br />
} else {<br />
$outtext .= $thisline." ";<br />
}<br />
}<br />
$outtext = preg_replace("/[^a-zA-Z0-9\s\,\.\-\n\r\t@\/\_\(\)]/","",$outtext);<br />
return $outtext;<br />
}</code></span></p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; margin: 0px;" align="justify"><span style="font-family: 'courier new', courier; color: #0000ff;">$text = parseWord($filename);</span></p>
</blockquote>
<p>Maybe there are some words that do not want that still appears. But at least, this can be a little help you.</p>
<p>Good luck &#8230; and develop more</p>
<!--INFOLINKS_OFF--><h4>Incoming search terms for the article:</h4><div><a href="http://justepri.web.id/search/php+word+doc" title="php word doc">php word doc</a>&nbsp;<a href="http://justepri.web.id/search/php+load+file" title="php load file">php load file</a>&nbsp;<a href="http://justepri.web.id/search/web+comments+links+could+be+nofollow+free" title="web Comments links could be nofollow free">web Comments links could be nofollow free</a>&nbsp;<a href="http://justepri.web.id/search/php+loadfile" title="php loadfile">php loadfile</a>&nbsp;<a href="http://justepri.web.id/search/php+word+document+variables" title="php word document variables">php word document variables</a>&nbsp;<a href="http://justepri.web.id/search/php+load+doc+files" title="php load doc files">php load doc files</a>&nbsp;<a href="http://justepri.web.id/search/php+word+document" title="php word document">php word document</a>&nbsp;<a href="http://justepri.web.id/search/php+load+word+document" title="php load word document">php load word document</a>&nbsp;<a href="http://justepri.web.id/search/comments+links+could+be+nofollow+free" title="Comments links could be nofollow free">Comments links could be nofollow free</a>&nbsp;<a href="http://justepri.web.id/search/how+to+show+content+file+doc+with+php" title="how to show content file doc with PHP">how to show content file doc with PHP</a>&nbsp;<a href="http://justepri.web.id/search/load+file+text+with+php" title="load file text with php">load file text with php</a>&nbsp;<a href="http://justepri.web.id/search/load+word+file+php" title="load word file php">load word file php</a>&nbsp;<a href="http://justepri.web.id/search/php+preview+a+word+document" title="php preview a word document">php preview a word document</a>&nbsp;<a href="http://justepri.web.id/search/how+to+display+content+word+in+webpage+php" title="how to display content word in webpage php">how to display content word in webpage php</a>&nbsp;<a href="http://justepri.web.id/search/load+doc+php" title="load doc php">load doc php</a>&nbsp;<a href="http://justepri.web.id/search/how+to+display+word+doc+in+web+page+using+php" title="how to display word doc in web page using php">how to display word doc in web page using php</a>&nbsp;<a href="http://justepri.web.id/search/php+script+edit+file+word" title="PHP script edit file word">PHP script edit file word</a>&nbsp;<a href="http://justepri.web.id/search/php+preview+word+document" title="php preview word document">php preview word document</a>&nbsp;<a href="http://justepri.web.id/search/load+document+php" title="load document php">load document php</a>&nbsp;<a href="http://justepri.web.id/search/display+word+doc+with+php" title="display word doc with php">display word doc with php</a>&nbsp;</div><!-- SEO SearchTerms Tagging 2 plugin took 3.224 ms -->

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://justepri.web.id/load-file-word-document-with-php/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
