HTTP

file_get_contents

string file_get_contents(
    string $filename                    // ファイル名
    [, bool $use_include_path = false   // インクルードパス
    [, resource $context                // コンテキストリソース
    [, int $offset = -1                 // 読み込み開始オフセット
    [, int $maxlen                      // 読み込み最大バイト数
    ]]]] )
PHP: file_get_contents - Manual

Webサイトのソースの取得

$contents = file_get_contents( 'http://www.example.com/' );

httpsを使用する場合

プロトコルとしてhttpsを使用する場合、これが有効となっていないと「Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?」としてエラーとなります。このようなときにはOpenSSLの設定をする必要があります。