read file into a variable php code example
Example 1: transfer file using file_get_content
file_get_contents('http://url/to/upload/handler', false, $context);
Example 2: transfer file using file_get_content
$header = 'Content-Type: multipart/form-data; boundary='.MULTIPART_BOUNDARY;