473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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
Jul 17 '05 #1
2 2657
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
Jul 17 '05 #2
O. Hauger <o.******@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

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bgc | last post by:
Hello All, I've been struggling for years now trying to come up with a solution to a very personal programming problem with Python. I'm an educational programmer, and I make applications that...
10
by: callmebill | last post by:
I'm getting my feet wet with making Python talk to MySQL via ODBC. I started on Windows, and it went smoothly enough due to the ODBC stuff that apparently is native to Python at least on windows...
17
by: Bruce Jin | last post by:
I wonder how many people are using db2 on Windows? I know db2 is native to AS400 which has about 800,000 installations. Thanks!
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
14
by: Greg | last post by:
Is it possible that in some future version of Windows, only .NET (CLR) PE (Portable Executables) .exe will be enabled to run. I.e. the OS will not support running of native x86 code .exes/dlls? ...
4
by: Dave Calkins | last post by:
I have a native Win32 C++ app built with Visual Studio 2005. I'd like to make use of a property grid control in this app. For an example of this, in Visual Studio, see the properties control...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
1
by: jc | last post by:
Hello. I'm doing some prep work before taking the vb.net brainbench. I noticed one of the topics is : Consuming resources - Windows Native Calls Where can I get more info on this? What...
53
by: None | last post by:
Hi, I am a game developer, sometimes "indy" and sometimes for a small-sized company. I can't speak for all game developers, but everywhere I've ever seen people working on games, execution...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.