Unwanted file path with file_get_content
<p>I have this code:</p>

<pre><code>&lt;?php 
$file1 = file_get_contents('http://www.mydomain.com/admin/config/main.txt');
echo "&lt;a href='$file1' &gt;";
?&gt;
</code></pre>

<p>Which give me a hyperlink as follows:</p>

<p>www.mydomain.com/admin/config/'content of main.txt'</p>

<p>All I want is it to create a link which contains 'content of main.txt'</p>

<p>I have tried the following:</p>

<pre><code>$file1 = file_get_contents('http://www.mydomain.com/admin/config/main.txt', false);
</code></pre>

<p>But it just gives me the same back.</p>

<p>I'm lost as to how to just give me whatever is in the file, without the path.</p>

<p>Any help would be greatly appreciated.</p>

<p>Thank you.</p>
