0
私は配列を作成し、それらすべてを試してみましたURLを入力するので、多くの方法があります...:fileGetContentsを使用する正しい方法は何ですか?これは、ドメインのみのためであることを起こる</p> <p>
private function pageFoundGet($domain)
{
$types = array(
"file_get - 1"=>$domain,
"file_get - 2"=>'www.' . $domain,
"file_get - 3"=>'http://www.' . $domain,
"file_get - 4"=>'https://www.' . $domain,
"file_get - 5"=>'http://' . $domain,
"file_get - 6"=>'https://' . $domain
);
foreach ($types as $code => $value) {
if ($this->domain_file = $this->fileGetContents($value))
{
$this->file_start_code = $code;
return true;
}
}
return false;
}
しかし、正しい方法は何ですか?
私はあなたが信じていますが、file_get_contentsがこれらの2つのパラメータを必要とすることを参照するリンクを提供できますか? http://php.net/manual/en/function.file-get-contents.php ...言わない –