Accueil

protected function absolute_url($url) {
 if (strpos($url, '://') !== false) {}
 elseif (substr($url, 0, 2) == '//')
  $url = parse_url($this->response_url, PHP_URL_SCHEME).':'.$url;
 elseif (substr($url, 0, 1) == '/') {
  $parts = parse_url($this->response_url);
  $end_limit = 0;
  $end_limit -= (isset($parts['path'])) ? mb_strlen($parts['path']) : 0;
  $url = substr($this->response_url, 0, $end_limit).$url;
 }
 else
  $url = rtrim($this->response_base_url, '/').'/'.$url;
	

github