NW.js and online database - Forum

Forum Navigation
You need to log in to create posts and topics.

NW.js and online database

Hi Luis,
I would like to know if it is possible to access an online sqlite database from a NW.js app on a computer (connected to Internet, of course)...
Best regards,

@cdy44-2 I think so. Although I have had no time to test it. Just remember:

  • Uncomment the config.php header that allows CORS (cross domain requests).
  • Upload the SQLite database, neofuncions.php and config.php to your hosting provider.
  • Be sure your server has the SQLite .pdo extension activated in PHP.
  • Use neoPhpSetPath command to config neoPhp to correctly call neofunctions.php file.

Please let me know if it works!
Regards.

Thank you Luis, I will check this as soon I can. I will tell you.
Have a good day !

I'm trying it out but it doesn't seem to be working. I may be doing a wrong manipulation ...
Where should you use neoPhpSetPath command?
Should the link be like this: "https: //mydomain/mysite/neofunction.php"?

Where should you use neoPhpSetPath command?

@cdy44-2 before you call any neoPhp command. So Project > Events > Start-up should be a good place.

Should the link be like this: "https: //mydomain/mysite/neofunction.php"?

Note the example in the command wizard. It should be something like:

https: //mydomain/mysite/

No way...I wil stop for today...all the more since I have just learned a worrying news concerning one of my relatives ...

.all the more since I have just learned a worrying news concerning one of my relatives ...

I hope everything will be ok. Unfortunately we are all facing so many worries these days.