note 97119 added to ref.com
| From: | catalin dot luntraru at gmail dot com | Date: | Fri, 02 Apr 2010 11:45:29 +0000 |
| Subject: | note 97119 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167641@lists.php.net to get a copy of this message | ||
Regarding what monica at digitaldesignservices dot com has said.
I have office 2007 on windows xp sp3 with xampp and I've upgrade office to sp2 (latest version
as of today), but the script still hangs. Here's the script:
<?php
$filename = 'd:/document.doc';
$word = new COM("word.application") or die ("Could not initialise MS Word
object.");
$word->Documents->Open(realpath($filename));
// Extract content.
$content = (string) $word->ActiveDocument->Content;
echo $content;
$word->ActiveDocument->Close(false);
$word->Quit();
$word = null;
unset($word);
?>
After some debugging I found out that it hangs at $word->Documents->Open();
Can someone help me out?
----
Server IP: 69.147.83.197
Probable Submitter: 79.112.102.152
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit -- https://master.php.net/note/edit/97119
Del: integrated -- https://master.php.net/note/delete/97119/integrated
Del: useless -- https://master.php.net/note/delete/97119/useless
Del: bad code -- https://master.php.net/note/delete/97119/bad+code
Del: spam -- https://master.php.net/note/delete/97119/spam
Del: non-english -- https://master.php.net/note/delete/97119/non-english
Del: in docs -- https://master.php.net/note/delete/97119/in+docs
Del: other reasons-- https://master.php.net/note/delete/97119
Reject -- https://master.php.net/note/reject/97119
Search -- https://master.php.net/manage/user-notes.php