By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

php and dll

P: n/a
Hi,

Is it possible to call your own written DLL functions from php ?

regards

Johan
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Johan den Boer" <me@knoware.nl> wrote in message
news:vt************@corp.supernews.com...
Hi,

Is it possible to call your own written DLL functions from php ?

regards

Johan


Sure,

you build them into PHP as extensions.

http://www.php.net/manual/en/zend.php


Jul 17 '05 #2

P: n/a
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;
?>
Jul 17 '05 #3

P: n/a
Johan den Boer ha scritto:
Hi,

Is it possible to call your own written DLL functions from php ?

regards

Johan

Use

http://it.php.net/manual/en/ref.w32api.php

and

http://wobster.mynnga.de/w32api.txt

-This extension is a generic extension API to DLLs. This was originally
written to allow access to the Win32 API from PHP, although you can also
access other functions exported via other DLLs.-

--
// Roberto Rossi
// http://rsoftware.altervista.org

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.