7 function __construct($url, $file)
9 $this->url
= absolutize($url);
10 $this->file
= absolutize($file);
15 $f = $this->file
.'/'. $path;
16 if (strpos($this->url
, '?')) {
17 $u = str_replace('?', "/$path?", $this->url
);
18 } else if (strpos($this->url
, '#')) {
19 $u = str_replace('#', "/$path#", $this->url
);
21 $u = $this->url
.'/'. $path;
23 $r = new LocalResource($u, $f);
38 function absolutize($path)
40 $path = ereg_replace('/\./', '/', $path);
41 $path = ereg_replace('/[^/.]+/+\.\./', '/', $path);