dont 'use
$d= ....;
echo $d;
just :
readfile ("....");
From the PHP Manual:
readfile
(PHP 3, PHP 4 )
readfile -- Outputs a file
Description
int readfile ( string filename [, bool use_include_path [, resource context]])
Reads a file and writes it to the output buffer.
Returns the number of bytes read from the file. If an error occurs, FALSE is returned and unless the function was called as @readfile(), an error message is printed.
so make sure that the file you're trying to read exists.