On Mon, Jan 5, 2009 at 4:26 PM, Michael <[email protected]> wrote:
>
> It has been suggested to me in another forum to stay with the PHP code, except
> for the part that is running really s-l-o-w and code this in C/C++.
>
> How is this done?
>
> Does the PHP call another program or can I include C/C++ code in the .php
> file?
>
> (ps: The file is CLI, run at the command line).
>
> Maybe a dumb question but I needed to ask.

compile the C++ into an executable.
call it from php:
<?php
shell_exec('command to run');
?>

(though i'm not sure this is a good approach)

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to