PHP Class FileFetcher, pubwich

ファイルを表示 Open project: remiprev/pubwich Class Usage Examples

Public Methods

Method Description
get ( string $url, $headers = null ) : mixed Récupère le contenu d'un fichier
getCurl ( string $url, $headers = null ) : string Récupère le contenu à l'aide de l'extension cURL
getRemote ( string $url ) : string Récupère le contenu à l'aide file_get_contents

Method Details

get() static public method

Récupère le contenu d'un fichier
static public get ( string $url, $headers = null ) : mixed
$url string L'URL du fichier
return mixed Le contenu du fichier en cas de succès. FALSE en cas d'échec

getCurl() static public method

Récupère le contenu à l'aide de l'extension cURL
static public getCurl ( string $url, $headers = null ) : string
$url string L'URL du fichier
return string Le contenu du fichier

getRemote() static public method

Récupère le contenu à l'aide file_get_contents
static public getRemote ( string $url ) : string
$url string L'URL du fichier
return string Le contenu du fichier