Documentation

URL
in package

Table of Contents

Methods

exists()  : bool
Does a URL "exist"?
fromPath()  : string

Methods

exists()

Does a URL "exist"?

public static exists(string $url) : bool

We're going to treat any response code < 400 as existing.

Parameters
$url : string
Tags
link

Comment get_headers() documentation

Return values
bool

fromPath()

public static fromPath(string $path[, string|null $base = null ][, string $separator = DIRECTORY_SEPARATOR ]) : string
Parameters
$path : string
$base : string|null = null
$separator : string = DIRECTORY_SEPARATOR
Return values
string

        
On this page

Search results