Date: 09/28/05 08:11
By: Aradhana
Subject: RE: slow down executing com
i try to execute the below :
<?php
// starting word
$word = new COM("word.application") or die("Unable to instanciate Word");
echo "Loaded Word, version {$word->Version}\n";
//bring it to front
$word->Visible = 1;
//open an empty document
$word->Documents->Add();
//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
//closing word
$word->Quit();
//free the object
$word->Release();
$word = null;
?>
but when the code execute it seem very slow to appear in my browser
and finally i get CGI timeout error. i use win 2000,php 4.3.10, could anyone help me about this?thanx in advance.