php - How to specify a base address when opening a link which uses relative addresses -
how can php 5.2.9 open link , specify base uri (?) link's relative addresses css file , other files work ?
i tried:
$link = mysql_result($array,0,2); // eg 'https://xyz.net/login' $directory = dirname($link); chdir($directory); readfile($link); unlink($link);
but login page can't find css file @ relative address
Comments
Post a Comment