php and dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johan den Boer

    php and dll

    Hi,

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

    regards

    Johan


  • Guest's Avatar

    #2
    Re: php and dll


    "Johan den Boer" <me@knoware.n l> wrote in message
    news:vt02a4m8m7 ng78@corp.super news.com...[color=blue]
    > Hi,
    >
    > Is it possible to call your own written DLL functions from php ?
    >
    > regards
    >
    > Johan
    >
    >[/color]

    Sure,

    you build them into PHP as extensions.








    Comment

    • Terence

      #3
      Re: php and dll

      Johan den Boer wrote:
      [color=blue]
      > Hi,
      >
      > Is it possible to call your own written DLL functions from php ?
      >
      > regards
      >
      > Johan
      >
      >[/color]

      A less efficient but easier way to do it is use PHP's COM capabilities

      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->validateOnPars e="true";
      $xmlparser->load("d:\\xmld ata\\test.xml") ;
      echo "Error Code: ";
      echo $xmlparser->parseError->errorCode;
      echo "Error Reason: ";
      echo $xmlparser->parseError->reason;
      echo "Error Line: ";
      echo $xmlparser->parseError->line;
      ?>


      Comment

      • Robert

        #4
        Re: php and dll

        Johan den Boer ha scritto:[color=blue]
        > Hi,
        >
        > Is it possible to call your own written DLL functions from php ?
        >
        > regards
        >
        > Johan
        >
        >[/color]
        Use



        and



        -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

        Comment

        Working...