I need to create a php file that return a JPEG image. I wrote this code but it doesn't work:
<?php
header('Content-type: image/jpeg;');
$p = 'http://....file.jpeg';
$a = file_get_contents('$p');
echo $a;
?>
What's wrong? I think that it is too simple