You do not have access to that information when running in CGI mode. It's a
bitch, but your options are limited:
1. if you're only running one domain with PHP, set the document_root
variable in php.ini
2. define(DOCUMENT_ROOT, "d:\inetpub\wwwroot\domain1") in each page, or an
include
3. the
There is a sample of how to do this on the PHP manual page on COM. For those
lazy folks, here's some code that I have already used.
+ + + + +
$dbConn = new COM("ADODB.Connection") or die ("ouch!");
$dbConn->Open("Provider=SQLOLEDB; Data Source=server1; Initial Catalog=Pubs;
User ID=dbo; Passwor
I have a bit of an inside track at MS camp, and would be very careful about
using this module. dotNet seems to change every 5 minutes, even though they
are supposed to be past the making big changes point. I'm not sure how
internal class changes would affect the php_dotnet.dll, but just thought I'