R
R
ref02182014-06-16 23:54:36
PHP
ref0218, 2014-06-16 23:54:36

What is the most efficient way to get data from another server?

There are two servers, server1 works with statics, server2 only processes search queries and returns results. There was a need to insert search results from server2 into the pages of server1. In a quick way, it was all implemented through file_get_contents(' server2/query=mersedes+door ') with an insert in the right place. Are there better ways to implement such a scheme?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Soshnikov, 2014-06-17
@soshnikov

Too vague question.
Database replication, rsync, tunnel to the database if the data is updated frequently.
Highly dependent on the task, resources, and nature of the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question