Johan den Boer wrote:
Hi,
Is it possible to call your own written DLL functions from php ?
regards
Johan
A less efficient but easier way to do it is use PHP's COM capabilities
http://www.php.net/manual/en/ref.com.php
Of course, this is pretty much your only option if you've used something
like VB to write your dll.
Here's an example someone posted on how to use the MSXML parser to
validate an XML schema/DTD.
krator at krator dot com (05-Nov-2002 01:51)
If you are using php on windows then install MSXML Core Services and use
their tools. This can be done by using the php COM functions.
<?php
$xmlparser = new COM("Microsoft.XMLDOM") or die("Unable to instanciate
MSXML");
echo "Loaded MSXML.\n";
$xmlparser->async="false";
$xmlparser->validateOnParse="true";
$xmlparser->load("d:\\xmldata\\test.xml");
echo "Error Code: ";
echo $xmlparser->parseError->errorCode;
echo "Error Reason: ";
echo $xmlparser->parseError->reason;
echo "Error Line: ";
echo $xmlparser->parseError->line;
?>