PHP: what is fast SOAP, file_get_contents or curl?

I have a website A that sends a request to load each page in the header to website B. B does an internal search in mysql and needs to return some data to server A, which will display some content based on this answer.

What is the fastest way to communicate between these two servers?

+7
source share
1 answer

The fastest and easiest method is cURL, as well as the data returned by cURL is easily analyzed. Using get_file_contents is intended solely for reading a file, while cURL is fully intended for exchanging data between two servers.

0
source

All Articles