Using a native Windows-DLL from PHP?

This is a discussion on Using a native Windows-DLL from PHP? within the PHP Language forums, part of the PHP Programming Forums category; Hello, I've an existing Windows-dll which I want to use within PHP. Is there something similar to Java'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2005
O. Hauger
 
Posts: n/a
Default Using a native Windows-DLL from PHP?

Hello,

I've an existing Windows-dll which I want to use within PHP. Is there
something similar to Java's "JNI" in PHP. Or do I have to make a
PHP-Extension from my existing DLL?

Thanks in advance!

Oliver
Reply With Quote
  #2 (permalink)  
Old 03-02-2005
Erwin Moller
 
Posts: n/a
Default Re: Using a native Windows-DLL from PHP?

O. Hauger wrote:

> Hello,
>
> I've an existing Windows-dll which I want to use within PHP. Is there
> something similar to Java's "JNI" in PHP. Or do I have to make a
> PHP-Extension from my existing DLL?
>
> Thanks in advance!
>
> Oliver


Hi Oliver,

Have a look at exec and the like:

http://nl2.php.net/manual/en/ref.exec.php
and also: passthru (If you need to capture any output produced)

Think commandline.
If you can define some commandline statement, you can feed it to PHP.
I don't think you can call a DLL directly, so you probably need to
find/write some wrapper.

Hope that helps.

Or maybe when you read through the documentation you find what you need.
(Not my area of expertice. :P)

Good luck,
Erwin Moller
Reply With Quote
  #3 (permalink)  
Old 03-02-2005
Daniel Tryba
 
Posts: n/a
Default Re: Using a native Windows-DLL from PHP?

O. Hauger <o.hauger@daa.de> wrote:
> I've an existing Windows-dll which I want to use within PHP. Is there
> something similar to Java's "JNI" in PHP. Or do I have to make a
> PHP-Extension from my existing DLL?


windows dlls can be accessed by:
http://nl2.php.net/manual/en/ref.w32api.php
of if they are COM:
http://nl2.php.net/manual/en/ref.com.php
or if they are .net modules:
http://nl2.php.net/manual/en/ref.dotnet.php

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0