$我的筆記['基於PHP/CURL/codeIgniter'的Spider Webbot爬蟲'][1]=使用LIB_http類庫獲取服務器的參數

//得到服務器的參數php

include ("application/libraries/LIB_http.php");
//定義目標和參照頁
$target="http://www.schrenk.com/publications.php";//定義抓取下載的檔案
$ref="http://www.schrenk.com";//引用的參照(由於網站不容許外鏈偷網,因此要引用一個參照)服務器

//請求的http header
$return_arrry=http_header($target,$ref);app

//顯示標頭
echo "網站

<get

pre>";
echo "FILE CONTENTS \n";
var_dump($return_arrry['FILE']);io

echo "ERRORS \n";
var_dump($return_arrry['ERROR']);下載

echo "STATUS ";
var_dump($return_arrry['STATUS']);
echo "引用

 

";
?>請求

輸出co

相關文章
相關標籤/搜索