path

package

KCFinder @version 3.12 @author Pavel Tzonkov sunhater@sunhater.com

Methods

Normalize the given path. On Windows servers backslash will be replaced with slash. Removes unnecessary double slashes and double dots. Removes last slash if it exists. Examples: path::normalize("C:\\any\\path\\") returns "C:/any/path" path::normalize("/your/path/.

normalize(string $path): string
static

.//home/") returns "/your/home"

Arguments

$path

string

Response

string

Get the absolute URL path of the given one. Returns FALSE if the URL is not valid or the current directory cannot be resolved (getcwd())

rel2abs_url(string $path): string
static

Arguments

$path

string

Response

string

Resolve full filesystem path of given URL. Returns FALSE if the URL cannot be resolved

url2fullPath(string $url): string
static

Arguments

$url

string

Response

string

Decode URL Path

urlPathDecode(string $path): string
static

Arguments

$path

string

Response

string

Encode URL Path

urlPathEncode(string $path): string
static

Arguments

$path

string

Response

string