private function getConnectorUrl() {
		$url  = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')? 'https://' : 'http://')
		       . $_SERVER['SERVER_NAME']                                              // host
		      . ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT'])  // port
		       . $_SERVER['REQUEST_URI'];                                             // path & query
		list($url) = explode('?', $url);
		return $url;
	}
private function getConnectorUrl() {
		$url  = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')? 'https://' : 'http://')
		       . $_SERVER['SERVER_NAME']                                              // host
		      . ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT'])  // port
		       . $_SERVER['REQUEST_URI'];                                             // path & query
		list($url) = explode('?', $url);
		return $url;
	}
private function getConnectorUrl ( ) { $ url = ( ( isset ( $ _SERVER [ 'HTTPS' ] ) && strtolower ( $ _SERVER [ 'HTTPS' ] ) !== 'off' ) ? 'https://' : 'http://' ) . $ _SERVER [ 'SERVER_NAME' ] // host . ( $ _SERVER [ 'SERVER_PORT' ] == 80 ? '' : ':' . $ _SERVER [ 'SERVER_PORT' ] ) // port . $ _SERVER [ 'REQUEST_URI' ] ; // path & query list ( $ url ) = explode ( '?' , $ url ) ; return $ url ; }
Get script url

@return string full URL
@author Naoki Sawada
Get script url