View Single Post
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007
#2
Originally Posted by code177 View Post
Okay. It's true - I had fun writing the thread title. But I also think it expresses what this thread is about, which is:

If you write an app that needs to talk to a database, hosted on a webserver, but you also want to release the code as open source.. what do you do?

I can think of a couple options:

- Somehow binaryize the connection information
- Write an HTTP based API

It crossed my mind that you could leave the connection info in there, but then I realised anyone with the code could just go postal on the database, so that's obviously out.

So what's the convention here? I don't want to have to close-source my app when it's done...
What exactly are you working on here? It's hard to give you advice without more context.

You could always just create a new user/table per app user, I suppose and restrict access so that only the user can affect data in his table.
 

The Following User Says Thank You to zerojay For This Useful Post: