I\'m not asking about uploading a file from a browser to a php script, there\'s plenty of tutorials about that already. I\'m asking about this:
I have a php script t
You could use SOAP to send the file from one server to the other.
Receiving server:
'somerui') );
$server->addFunction( 'receiveFile' );
function receiveFile( $file ) {
file_put_contents( 'somepath', base64_decode( $file ) );
}
?>
Sending server:
'somerui') );
$client->receiveFile( base64_encode( file_get_contents( 'somepath' ) );
?>