SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Location
    Israel
    Posts
    523
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    connecting to a database remotely

    hey guys,
    I'm hosting a website which purpose is to store dogs for adoption from all accross the country.
    many organizations can use it to uplaod their dogs/cats for adoption

    The thing is that they got a site as well for their dogs only
    So i was wondering, is there any way to safely connect to my database through their host to publish their dogs/cats on their website (so this way they only have to uplaod them to my site)

    I know i can probably just use mysql_connect func and provide my db details in it, but thats not safe (i hope no need to mention why )

    Any ideas?
    Thanks,
    Ulthane.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Create an API that others can use to communicate with your application...do not give direct access to your database under any circumstances.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2010
    Location
    Israel
    Posts
    523
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    any guides/tutortals or anything to guide me through?

  4. #4
    SitePoint Evangelist
    Join Date
    Jun 2010
    Location
    Israel
    Posts
    523
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    still looking for anyone who has done such a thing or knows how to do so to guide me through...

  5. #5
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    API design is tailored to the specific application in question. There is no one size fits all.
    http://www.infoq.com/presentations/effective-api-design
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •