|
Posted by Rory Browne on 08/21/05 20:16
I've never really examined the code behind the PHP/MySQL API, but I
would assume, that it is mainly a wrapper for the C MySQL API.
Do you know how to interact with this database in any other language
such as C, Perl, Java etc?
I don't know much about prolog, but a look at www.swi-prolog.org
suggests that it has a two-way C interface. You'd exploit this, by
writing a php Extension in C(see PHP manual), that would interact with
your prolog app, using the two-way C/C++ interface.
I don't know Prolog, nor anything about it, except that it seems to be
a functional programming language, so take these comments in that
reference frame.
On 8/21/05, Fernando Garza <ferdrg@gmail.com> wrote:
> Hi,
>
> I am creating a Shell in prolog language that interacts with a Visual Prolog
> database format in Win32, I would like to interact with this database with
> PHP, just like the interaction with MySQL database, can you give me some
> notion or the code that need to be executed to get this done? for example
> in:
>
> mysql_connect
>
> or
>
> mysql_create_db
>
> what code is executed behind this functions?
>
>
> I think the functions to make this done should be execute a program with
> some function, passes values and receive values from the shell
>
>
> any idea?
>
>
[Back to original message]
|