Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing a DLL With PHP for Dummies
    primarykey
    data
    text
    <p>I have a project that needs to access a DLL with PHP. The server is a Windows machine and the Apache server is provided by XAMPP.</p> <p>I read multiple answers on the web like</p> <ul> <li><a href="https://stackoverflow.com/questions/1095311/use-dll-in-php">Use DLL in PHP?</a></li> <li><a href="https://stackoverflow.com/questions/6344221/php-communication-with-dll">php communication with dll?</a></li> <li><a href="https://stackoverflow.com/questions/4368058/calling-dll-through-php">calling dll through php</a></li> <li><a href="http://ca.php.net/manual/en/class.com.php" rel="nofollow noreferrer">http://ca.php.net/manual/en/class.com.php</a></li> <li><a href="http://ca2.php.net/manual/en/book.w32api.php" rel="nofollow noreferrer">http://ca2.php.net/manual/en/book.w32api.php</a></li> <li><a href="http://www.talkphp.com/absolute-beginners/3340-php-how-load-com-dll-file.html" rel="nofollow noreferrer">http://www.talkphp.com/absolute-beginners/3340-php-how-load-com-dll-file.html</a></li> </ul> <p>Here is how I call the DLL in <code>HTA</code> / <code>Javascript</code>:</p> <p><code>&lt;object style="display:none" id="SOME_ID" classid="clsid:SOME_CLASS_ID" codebase="./somePath.dll"&gt;&lt;/object&gt;</code></p> <p><strong>Does someone have a working example?</strong></p> <p>Here is what I tried so far in PHP:</p> <pre><code>$obj = new COM('pathTo.dll'); </code></pre> <p>Information on the DLL: </p> <ol> <li>Compiled using Delphi</li> <li>It is (of course) home made</li> <li>I get the following error <code>the DllRegister Server entry point was not found</code> when I try to register the DLL with <code>regsvr32</code></li> </ol> <p>Can it be used without registering it with <code>regsvr32</code>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload