Re: [PHP-WIN] IIS COM problem

2002-05-23 Thread Alan Brown
Guessing I would suggest that you examine the permissions on the file referenced by $DocumentPath and see if IUSR_ has read permssion. If not, either run the site as a user with permission or grant the IUSR read permission on the document. Alan. - Original Message - From: "RS Herhuth" <[E

Re: [PHP-WIN] Can't figure out how to fix this code...please help

2002-05-17 Thread Alan Brown
I assume that the problem is that olMailItem is a constant and not a string This causes the error: $myItem = $objApp->CreateItem("olMailItem"); This does not: $myItem = $objApp->CreateItem(olMailItem); Of course you have to have: com.autoregister_typelib = true in your php.ini or you will nee

Re: [PHP-WIN] NT ACL Manipulation

2002-04-29 Thread Alan Brown
I have never found any detailed docs on the subject, but when I was playing with IIS configuration, I found that it was capable of returning an ACL and it is true that I can instantiate a component called "AccessControlEntry" $ACE = new COM("AccessControlEntry"); $ACE->Trustee = "Administrator";

Re: [PHP-WIN] Excel not closing after using it via COM

2002-04-27 Thread Alan Brown
This way you only have one errant instance and not hundreds. Alan. - Original Message - From: "Neil Lincoln" <[EMAIL PROTECTED]> To: "Alan Brown" <[EMAIL PROTECTED]>; "Scott Hurring" <[EMAIL PROTECTED]>; "Php-Win (E-mail)" <[E

Re: [PHP-WIN] Excel not closing after using it via COM

2002-04-26 Thread Alan Brown
se with PHP > finishing up and EXCEL still in memory when a > temp-object is not properly unset())? > > --- > Scott Hurring > Systems Programmer > EAC Corporation > [EMAIL PROTECTED] > Voice: 201-462-2149 > Fax: 201-288-1515 > > > -Original Message---

Re: [PHP-WIN] PHP+COM+manage event

2002-04-26 Thread Alan Brown
I am fairly sure you are talking about the IConnectionPoint technology which you get at in VB with "WithEvents". It is in the COM TODO list but has never bubbled up to be implemented. Alan - Original Message - From: "mickael jeantet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP-WIN] Excel not closing after using it via COM

2002-04-26 Thread Alan Brown
There is a missing "Release" call in the COM code when temporary objects are created for a construct such as $excel->application->DisplayAlerts = False; This is not as visible a problem with an inproc server as with a localserver such as Excel. It is fairly easy to work around this (until I get

Re: [PHP-WIN] COM and ADODB access

2002-04-17 Thread Alan Brown
There were definitely two nasty bugs in the COM code which I believe that I have fixed and checked into CVS. But the root cause of your problem is actually a COM exception thrown by ADODB.Connection. I see this exception when I pass "position" (a valid field name in the database) in a SQL queries

Re: [PHP-WIN] checkdnsrr()

2001-12-03 Thread Alan Brown
I did spend some time fixing up the bindlib_w32 some months back (in preparation for just this fix) - but I never did check in any changes to the PHP code (mostly beacuse I did not know who manages the bindlib_w32 code stored on the PHP.net web server). And I have to say that I did not bother with

Re: [PHP-WIN] Changing the default user

2001-11-13 Thread Alan Brown
It is actually quite simple: Solution 1) Put ACLs on the .php files and IIS will request authentication. After authentication, the script runs as the authenticated user. If this is not desirable: Solution 2) Go into the configuration for the the site (or virtual directory) and select the "Direc

Re: [PHP-WIN] strings chopped in half using COM objects

2001-11-09 Thread Alan Brown
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 11:26 Subject: [PHP-WIN] strings chopped in half using COM objects > On Thu, 08 November 2001, "Alan Brown" wrote: > > > > > I just grabbed the very latest from CVS (which seems to ha

Re: [PHP-WIN] More COM questions...

2001-10-04 Thread Alan Brown
I spent a little time looking at this sample code and thinking about the questions we discussed on the phone yesterday afternoon. I have seen a number of questions posted to this newsgroup that show that you are not alone in trying to get started and to get a handle on COM, so I thought others mig