php read content of file code example
Example 1: turn text file to string php
$fileContent = file_get_contents($url);
Example 2: transfer file using file_get_content
$header = 'Content-Type: multipart/form-data; boundary='.MULTIPART_BOUNDARY;
$fileContent = file_get_contents($url);
$header = 'Content-Type: multipart/form-data; boundary='.MULTIPART_BOUNDARY;