ID: 12341
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: COM related
Operating System: NT 4.0 WorkStation
PHP Version: 4.0.6
New Comment:
if the webserver runs as service it doesn't have access to the userspace (e.g. the
desktop). if you want to open a window you have to execute php from the command line.
harald
Previous Comments:
------------------------------------------------------------------------
[2001-07-24 14:19:44] [EMAIL PROTECTED]
I thought this is what the commands were supposed to do.
If you wanted to open word wouldn't you do something
like this:
exec("c:\path\to\winword");
------------------------------------------------------------------------
[2001-07-24 12:17:04] [EMAIL PROTECTED]
Did the document save correctly?
------------------------------------------------------------------------
[2001-07-24 10:43:11] [EMAIL PROTECTED]
A take a sample of function COM.
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1; // command that show window
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
The commands execute, but the window of word don't appears.
I make a test with Autocad too, but the window don't appears.
When a had a ohter version PHP, don't remember, the window appears
thanks
Luiz Fernando
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12341&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]