PHP 클래스 FileFetcher, pubwich

파일 보기 프로젝트 열기: remiprev/pubwich 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

get() 정적인 공개 메소드

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

getCurl() 정적인 공개 메소드

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
리턴 string Le contenu du fichier

getRemote() 정적인 공개 메소드

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