[PHP-WIN] COM issue, different behaviour between cli and browser

2005-04-13 Thread Simon Taylor
Hi All, I have the following bit of code which works fine in a browser window, but as soon as I try it in cli mode it fails. I have a lot of other COM stuff which works just fine, just this one. Any ideas welcome. $oDso = new COM("WinNT:"); $oComp = $oDso->OpenDSObject("WinNT://DOMAIN/HOST$,user",

Re: [PHP-WIN] Extracting images from active directory using php

2003-09-11 Thread Simon Taylor
e/jpg" ); > echo $data; > This may or may not fix your problem, but some help is better than none! > With any luck someone with more experiance in this field will read your > email in the not to distant future. > > Stephen > > - Original Message - > From: &quo

[PHP-WIN] Re: Getting a pdf to open in Acrobat

2003-09-10 Thread Simon Taylor
George, I think you will find that this is the local OS causing the problem. Does it still do that if Acrobat Reader is installed on the machine browsing? Cheers Simon "George Pitcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I use the following code to grab a pdf from

[PHP-WIN] Extracting images from active directory using php

2003-09-10 Thread Simon Taylor
Hi All, I am busy trying to display an image extracted from the active directory on our intranet. This is what I have so far, I have searched the net on this and come up with very little info. The following just shows a page stating it could not display the image because it had errors. If anyone ha