Reply to Re: php and c++

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация