FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Running a C++ Library Function or Executable Using PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Running a C++ Library Function or Executable Using PHP [message #173710 is a reply to message #173708] Sat, 30 April 2011 18:05 Go to previous messageGo to previous message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma:
Member
At Sat, 30 Apr 2011 08:55:15 -0700 (PDT) Peter Lauren <peterdlauren(at)gmail(dot)com> wrote:

>
> I have an object library from code that was written in C++. Is there
> a PHP call that would enable me to run a function from the library, or
> a C++ derived executable, from a web page?

If the library is on the server, than you can look at SWIG
(www.swig.org) to create a wrapper module. If the C++ executable is on
the server, you can use the exec() call to run it from php.

If the library or executable is on the *client*, then you need to run or
call it from JavaScript (I think SWIG can build wrappers for JavaScript
as well as PHP).

>
> Thanks,
> Peter.
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Html code beautifier
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 22:25:28 GMT 2024

Total time taken to generate the page: 0.05570 seconds