php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8934 Execution of script aborted
Submitted: 2001-01-26 08:37 UTC Modified: 2001-03-02 23:12 UTC
From: sjrijk at yahoo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.3pl1 OS: Win 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sjrijk at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-01-26 08:37 UTC] sjrijk at yahoo dot com
The example (see below) from the PHP site to do some stuff with MS Word seems incompatible with IIS 5.0.

//<BEGIN_CODE>
$word=com_load("Word.application") or die("Cannot start word for you"); 
print "Loaded word version ($word->Version)\n"; 
$word->visible =1 ; 
$word->Documents->Add(); 
$word->Selection->Typetext("Dit is een test"); 
$word->Documents[1]->SaveAs("burb ofzo.doc"); 
$word->Quit();
//<END_CODE>

The same code has also been executed on (another) system runnig Win ME / Apache and does exactly what it's supposed to do.

Does this problem involves some kind of priviliges, not already documented?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-26 16:06 UTC] derick@php.net
Can you elaborate some more? What exactly doesn't work then, does it crash, does it give you an error?
 [2001-01-29 17:04 UTC] phanto@php.net
use

$word = new COM("Word.application");

or use the

com_propget, com_propput, com_invoke functions after the print command.
 [2001-03-02 07:11 UTC] sjrijk at yahoo dot com
I've removed IIS 5.0 and replaced it with Apache 1.3.17; It now works like clockwork and w/o any alterations.

Seems my first hunch was right: The COM functions are not entirely compatible with IIS.

Maybe something to look into?

 [2001-03-02 23:12 UTC] phanto@php.net
works fine with iis and the latest cvs version.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 20:01:27 2024 UTC