CaMykS  1.0-20231201
Functions
url.php.inc File Reference

URL specific methods. More...

Functions

 url_areInSameDomain ($urls=array(), $strict=false)
 
 url_getAsComplete ($url, $scheme='http')
 
 url_getAsSmart ($url)
 

Detailed Description

URL specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.3
Date
Creation: Apr 2018
Modification: Feb 2020
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning
This library is not loaded with CaMykS initialisation.

Function Documentation

◆ url_areInSameDomain()

url_areInSameDomain (   $urls = array(),
  $strict = false 
)

Check if provided urls are in the same domain

Parameters
array$urls
boolean$strictcheck also subdomain if true
Returns
boolean result

◆ url_getAsComplete()

url_getAsComplete (   $url,
  $scheme = 'http' 
)

Return completed URL with scheme when needed.

Parameters
string$url
string$scheme
Returns
string

◆ url_getAsSmart()

url_getAsSmart (   $url)

Return smart display for URL.

Parameters
string$url
Returns
string