php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32123 Not Work
Submitted: 2005-02-27 08:03 UTC Modified: 2005-03-20 18:10 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: fLAre_Dra_X at yahoo dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 5.0.1 OS: Windows XP SP 2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-02-27 08:03 UTC] fLAre_Dra_X at yahoo dot com
Description:
------------
I've try to use some advantage of PHP in connection to OLE or COM object. I follow some script doing that but found some error like bellow.

My system specs are :
AMD Athlon XP 1800+
RAM 512 MB
HD Seagate 40 GB
OS Windows XP SP 2
WebServer IIS 5.1 integrated with MS.Net Framework 1.1.4322 and PHP 5.0.0RC1-win32 CGI Mode

Other kind like access MySQL, normal PHP script it's work normally, only for COM procedure it doesn't work ???

Reproduce code:
---------------
<?php
  $word = new COM("word.application")or die "word cannot opened";
  $word->Visible = 1;
  $word->Documents->Add();
  $word->Selections->TypeText("Pemrograman PHP 5 ...");
  $word->Documents[1]->SaveAs("C:\\inetpub\\wwwroot\\test.doc");
  $word->Quit();
  $word = null;

  $buka = new COM("InternetExplorer.Application");
  $buka->Visible = true;
  $buka->Navigate("http://localhost/test.doc");
?>

Expected result:
----------------
I've expected that COM Object of Ms.Word will be created and save a documents, then server open new IE window then get Ms.Word OLE inside it.

Actual result:
--------------
It bought me error :
Error xxxx: Class "com" not found error on line xxxx
I've think that my PHP doesn't have COM class for creating COM Object.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-27 10:25 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip
 [2005-03-20 18:10 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC