Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,469 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,425 people online right now. Registration is fast and FREE... Join Now!




PHP/Com

 
Reply to this topicStart new topic

PHP/Com, Timeout error with Word object

cyberscribe
post 4 May, 2005 - 05:32 PM
Post #1


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


Hi Gang,

I'm hoping someone can help with this. From a colleague of a colleague:

QUOTE

I’ve got a simple PHP page that starts an instance of Word, writes some text and then saves the file. Something like this:

    $word=new COM("Word.Application") or die("Unable to instanciate Word");
    $word->Documents->Add();
    $word->Selection->TypeText("This is a test.");
    $word->Documents[1]->SaveAs("C:\\test.doc");
    $word->Quit();
I've tried other folk's code samples with the same results as mine, the Task Manager shows an instance of winword.exe but the page eventually times out with a 500 error. I’ve changed the account that runs Word from “the launching user” to “the interactive user” to a specific user and got the same results each time. Launch, access and configuration privileges all look like they’re set as well.


Best,
Robert
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 5 May, 2005 - 09:25 AM
Post #2


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


Someone? Anyone?

So far I just told them to try an RTF generator instead...
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:51PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month