| 
	
 | 
 Posted by Mariusz on 12/28/05 22:45 
NC wrote: 
 
> 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? 
Help me find a best way to solve my problem. I am beginner in PHP and C++, 
but I try do something.  
Finally I was able to compile "c" files code under linux and create a shared 
library *.so. 
 
>  
> 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/ 
Thank you for that link. I hope this will help. 
Mariusz 
>  
> Cheers, 
> NC
 
  
Navigation:
[Reply to this message] 
 |