get url content in php code example
Example 1: turn text file to string php
$fileContent = file_get_contents($url);
Example 2: transfer file using file_get_content
file_get_contents('http://url/to/upload/handler', false, $context);
$fileContent = file_get_contents($url);
file_get_contents('http://url/to/upload/handler', false, $context);