[PHP] PHP and Prolog database interaction
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 some function that run an .EXE, passes values and receive values from the shell any idea?
[PHP] PHP and Prolog
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?
Re: [PHP] PHP and Prolog
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 [EMAIL PROTECTED] 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Prolog
Fernando Garza 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 These are PHP functions implemented as wrappers around MySQL's C API. There is no such extension for Prolog. If your database has an ODBC driver then you can use odbc_* set of functions. Edin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php