安超2022-11-07 14:33:45
<?php
$url = "https://www.jacgoo.com";
$arr = file($url);print_r($arr);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
$html - curl_exec($ch);
# if(curl_errno($ch)){
echo 'Errno'.curl_error($curl);}
curl_close($ch);
print_r($html) ;?>
我的伺服器是apache,需要單獨設定嗎?