|
Posted by NC on 12/28/05 21:58
Mariusz wrote:
>
> Out software is writted in C++. I want write client for our DB but
> for this I need implement a c++ code for encrypted password.
> I try take a cpp file and compiled under linux but it give me some
> errors. I don't want change nothing inthis file.
In other words, you have a C++ problem that you do not want to solve.
How can we help you in a PHP newsgroup?
Generally speaking, if you want a cross-platform C++ code, you must not
rely on any OS-specific features, which your Windows code probably
does.
> This system was writted under windows. I try setup a server with
> apache1.3 and PHP 5.1.1.
> I find a function dl() that I am able to implemented c++ code, but
> can I take a file from windows *.dll and use it?
Most likely, no. PHP cannot use arbitrary libraries. The dl()
function only works on PHP extensions. If you want to use a library
with PHP, you must first wrap it into a PHP extension. To learn more
about writing PHP extentions, see this tutorial:
http://www.zend.com/php/internals/
Cheers,
NC
Navigation:
[Reply to this message]
|