
-----------------------------------
JamesXm
Tue Sep 27, 2005 4:46 pm

Turing-MySQL (and maybe even PHP)
-----------------------------------
Is it possible to connect to a MySQL database, via Turing?

NOTE: I have looked into this in minor details. Any help is greatly appreciated.

-----------------------------------
[Gandalf]
Tue Sep 27, 2005 5:36 pm


-----------------------------------
No.  Turing's compatability is very limited, not to mention that it is not meant for such things.

-----------------------------------
JamesXm
Tue Sep 27, 2005 5:37 pm


-----------------------------------
Thank you.

-----------------------------------
beard0
Tue Sep 27, 2005 9:37 pm


-----------------------------------
It is half possible, though highly inelegant.  What you have to do is write php code to a file, using a .php extension, use the system command to have php interpret the file, and send output to another file.  You can then use turing to read this final file.  Again, doable, but highly inelegant.

-----------------------------------
rizzix
Tue Sep 27, 2005 10:49 pm


-----------------------------------
what? no.... it's very possible you just need to write a mysql driver of somesort (using the network capabilites of turing) to get things working.. don't ask me for further details though

-----------------------------------
Tony
Wed Sep 28, 2005 7:24 am


-----------------------------------
I'm sure that it's possible. Would be hilarious to just connect to some MySQL server instead of writing one of those common "database" assignments. Though the former is much more work I imagine.

I don't see a need though. Any speed gain you get from using MySQL over a writable file, you loose over your driver and slow net communication as that is one of Turing's weaker points.

-----------------------------------
wtd
Wed Sep 28, 2005 5:47 pm


-----------------------------------
I don't see a need though. Any speed gain you get from using MySQL over a writable file, you loose over your driver and slow net communication as that is one of Turing's weaker points.

SQLite?

-----------------------------------
Tony
Thu Sep 29, 2005 10:16 am


-----------------------------------
anyway to inline C/C++ code into Turing? :lol:

-----------------------------------
[Gandalf]
Thu Sep 29, 2005 2:50 pm


-----------------------------------
anyway to inline C/C++ code into Turing? :lol:
There should be, since it is almost no extra work...  Then I guess it wouldn't be Turing though, and you would have to have all the libs, etc.
