How to specify a base address when opening a link which uses relative addresses
<p>How can I get php 5.2.9 to open a link and specify a base URI (?) so that the link's relative addresses to a css file and other files work ?</p>

<p>I tried:</p>

<pre><code>$link = mysql_result($array,0,2); // Eg 'https://xyz.net/login'
$directory = dirname($link);
chdir($directory);
readfile($link);
unlink($link);
</code></pre>

<p>but the login page can't find its css file at a relative address</p>
