3
1
Back

Preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = ''; } /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo.

New Pull Request