Yii Framework Forum: Web Service In Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Web Service In Yii Rate Topic: -----

#1 User is offline   Daniel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 301
  • Joined: 26-September 09

Posted 14 November 2013 - 10:37 PM

Dear All,

I need to synchronize between two databases. They are in different server but in a LAN (I consider this as in one LAN since I am using hamachi).

Currently, I am planning to use MultiActiveRecord extension + open mysql access to other ip not just localhost.

The thing is I do not like the idea of opening mysql access to other ip but localhost. I see the possibility of using Web Service (http://www.yiiframew...pics.webservice).

But, I do not posses enough knowledge to start this. Can anyone give guidance on how to proceed with web service in yii? especially that I want the web service to only reply to authenticated users, not to other users(guest).

Thank you in advance.


#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 15 November 2013 - 06:51 AM

I think that you should keep it simple and just create a user in mysql with very limited permissions (read-only). You mentioned hamachi, so you use VPN anyway. You could make mysql listen only on the hamachi interface/ip, so it would only allow connections from localhost and/or VPN.
Don't be a dick.

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users