On Mon, Jan 5, 2009 at 4:34 PM, Michael <[email protected]> wrote:
>
>
>> > 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)
>
> While having the PHP script call the C/C++ binary is the easy part, it needs
> to somehow receive back a whole lot of data (currently this data is passed
> through from the s-l-o-w as anything PHP function to the next part of the PHP
> script in an array).
>
> The data set is between a few thousand records and over 1-million.

whack it into sql database.
... or better yet, memcache.

--~--~---------~--~----~------------~-------~--~----~
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