7 function __construct($url, $file)
13 function LocalResource($url, $file)
15 $this->__construct($url, $file);
20 $u = absolutize($this->url
.'/'. $path);
21 $f = absolutize($this->file
.'/'. $path);
22 $r = new LocalResource($u, $f);
37 function absolutize($path)
39 $path = ereg_replace('/\./', '/', $path);
40 while (ereg('/[^/.]+/\.\./', $path)) {
41 $path = ereg_replace('/[^/.]+/\.\./', '/', $path);