Hi,
I want to upload files from one remote server to another using CURL
I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/
<?php
$ch = curl_init();
$data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt');
curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_exec($ch);
?>
The code is not working.