file_get_contents echo results code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: transfer file using file_get_content
file_get_contents('http://url/to/upload/handler', false, $context);
<?php
file_get_contents("file.txt");
?>
file_get_contents('http://url/to/upload/handler', false, $context);