if you want to access a file from another server, you can use,
file_get_contents, file, fopen etc
but they are disabled on certain servers. so we should always
use curl to remotely access a file, or to remotely login a site,
CURL work as a hidden browser.
Here is a sample code to get content from google
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_URL, “http://www.google.com/search?hl=en&q=xml&btnG=Google+Search”);
$content = curl_exec ( $ch );
this is a simple example, you can use CURL for more complex works. I’ll write here
another CURL advanced example soon.