WIKINDX API 6.6.8

URL

Table of Contents

Functions

reduceUrl()  : string
reduce the size of long URL to keep web browser display tidy
getCurrentProtocol()  : string
Return the protocol requested by the HTTP client
getVhost()  : string
Return the vHost name (Virtual Hostname)
URL_exists()  : bool
Check that an internet resource exists

Functions

reduceUrl()

reduce the size of long URL to keep web browser display tidy

reduceUrl(string $text[, false|int $limit = FALSE ]) : string
Parameters
$text : string
$limit : false|int = FALSE

Default is FALSE

Return values
string

getCurrentProtocol()

Return the protocol requested by the HTTP client

getCurrentProtocol() : string
Return values
string

http or https

getVhost()

Return the vHost name (Virtual Hostname)

getVhost() : string

Read also the special 'CLI_VHOST' constant which can be defined to simulate a vHost in CLI mode.

Return an empty string when the vHost cannot be read.

Return values
string

URL_exists()

Check that an internet resource exists

URL_exists(string $url) : bool
Parameters
$url : string
Return values
bool

        
On this page

Search results