A
A
ainu2012-03-16 12:52:51
PHP
ainu, 2012-03-16 12:52:51

Database query from PHP+v8js

For PHP, there is a v8js extension that allows you to run Javascript code and get the result.
The question is - is it possible to access a database (for example, MySQL) from within this Javascript code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eu22, 2012-03-16
@eu22

Well, you can register js-extensions for your database (if any) through V8Js::registerExtension, which you can pull out, for example, through file_get_contents, and then work with the database through it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question