PHP is shure a sensefull method.
PHP can handle the online part, and 3dGS just needs a way to
communicate with PHP, like using the html plugin.

Of course this will not allow realtime online games.
But it should be enough to make a turnbased gameplay, and a chat.