日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
實(shí)例講解PHP搜索引擎類

我們?yōu)榇蠹以敿?xì)介紹了有關(guān)PHP搜索引擎類的一些使用方法,希望對大家有些幫助。下面我們先以一個(gè)范例來講解類文件的概念。#t#

PHP搜索引擎類1.類文件:

  1. class grabble{  
  2. var $filename;  
  3. var $html;  
  4. var $urls = array(); //url歷史  
  5. var $url ;  
  6. var $url_1;  
  7. function grabble(){  
  8. set_time_limit(3600);   
  9. }  
  10. function set($_filename){  
  11. $this->filename = $_filename;  
  12. array_push ($this->url, $_filename);   
  13. }//end.set;  
  14. function set_url($_url){  
  15. eregi('(^http://.*[^/]).*' , $_url , $array);  
  16. $this->url = $array[1] . "/";   
  17. eregi('(^http://.*[^/]).*' , $_url , $array);  
  18. //print_r($array);  
  19. $this->url_1 = $array[1];  
  20. }  
  21. function get(){  
  22. }//end.get;  
  23. function get_html($_filename=null){  
  24. $this->filename = $_filename;  
  25. $this->html = @implode('', file($_filename)) ;  
  26. return $this->html;  
  27. }//end.get_html;  
  28. function get_title($_str=null){  
  29. preg_match_all("/</strong>(.*)<strong><</strong>\/title<strong>><br /> </strong>/Uis", $_str, $matches);  </li><li>return $matches[1][0];  </li><li>}//end.get_title;  </li><li>function get_img($_str=null){  </li><li>preg_match_all("/<strong><img</strong>\s+[^<strong>></strong>]*\s*src\s*=<br /> \s*([\'\"]?)([^\'\"<strong>></strong>\s]*)\\1\s*[^<strong>></strong>]*<strong>></strong>/i", <br /> $_str, $arr);  </li><li>print_r($arr[2]);  </li><li>}  </li><li>function get_link($_str=null){   </li><li>preg_match_all("/<strong><a.</strong>*href=[\'|\"](.+)?<br /> [\'|\"].*<strong>></strong>.+<strong><</strong>\/a<strong>></strong>/Uis", $_str, $arr);   </li><li>//print_r($arr);  </li><li>return $arr[1];  </li><li>}//end.get_link;  </li><li>function get_link_name($_str=null){   </li><li>preg_match_all("/<strong><a.</strong>*href=[\'|\"](.+)?<br /> [\'|\"].*<strong>></strong>(.+)<strong><</strong>\/a<strong>></strong>/Uis", $_str, $arr);  </li><li>return $arr[2];  </li><li>}//end.get_link_name;  </li><li>function link_list($_url=null, $_c=0){  </li><li>eregi('(^http://.*)/.*' , $_url , $array);  </li><li>$_url_0 = $array[1];  </li><li>$_html = $this-<strong>></strong>get_html($_url);  </li><li>$_link = $this-<strong>></strong>get_link($_html);  </li><li>$_list = $this-<strong>></strong>get_link_name($_html);  </li><li>$s = "";  </li><li>for($i=0;$i<strong><count</strong>($_link);$i++){  </li><li>$s .= "<br/>" . "<strong><INPUT</strong> TYPE='checkbox' <br /> NAME='link_name[]' value='" .$_link[$i]. "' <br /> <strong>/></strong>" . $_list[$i] . "  ";  </li><li>echo "<strong><br/></strong>" . "<strong><INPUT</strong> TYPE='checkbox' <br /> NAME='link_name[]' value='" .$_link[$i]. "' <br /> <strong>/></strong>" . $_list[$i] . "  ";  </li><li>echo "<strong><a</strong> href='" . $_url_0 . "/" . $_link[$i]<br />  . "' target='_blank'<strong>></strong>" . $_url_0 . "/" . <br /> $_link[$i] . "<strong></a></strong>";   </li><li>if($_c <strong><</strong> <strong>3</strong>){  </li><li>if(eregi('^[$_url_0|mailto:].*' ,$_link[$i])){   </li><li>echo "<strong><a</strong> href='" . $_link[$i] . "' <br /> target='_blank'<strong>></strong>" . $_link[$i] . "<strong></a></strong>";   </li><li>$s .= $this-<strong>></strong>link_list( $_link[$i] , $_c+1);  </li><li>}  </li><li>elseif(!eregi('^[http://|ftp://|file:///].<br /> *' ,$_link[$i])){  </li><li>$s .= $this-<strong>></strong>link_list( $_url_0 . "/" . $_link[$i] , $_c+1);  </li><li>}  </li><li>}  </li><li>}  </li><li>return $s;  </li><li>}//end.link_list;  </li><li>}//end.grabble. </li></ol><p><strong>PHP搜索引擎類2.調(diào)用實(shí)例:</strong></p><pre> <ol> <li>< ?php  </li> <li>require_once("grabble.<br>class.php");  </li> <li>$gf = new grabble();  </li> <li>echo $gf->link_list(<br>'http://10.22.65.101/');  </li> <li>?> </li> </ol><br></pre><p> 以上就是PHP搜索引擎類的相關(guān)使用方法。</p> <br> 分享題目:實(shí)例講解PHP搜索引擎類 <br> 網(wǎng)頁網(wǎng)址:<a href="http://m.5511xx.com/article/djospoe.html">http://m.5511xx.com/article/djospoe.html</a> </div> <div id="2tnid3l" class="hot_new"> <div id="944xaq8" class="page_title clearfix"> <h3>其他資訊</h3> </div> <div id="nat4rlj" class="news_list clearfix"> <ul> <li> <a href="/article/dhgdeoh.html">什么是Exsel服務(wù)器?如何使用它來提升工作效率?(exsel服務(wù)器)</a> </li><li> <a href="/article/dhgdeds.html">ASP.NETMVC3基礎(chǔ)教程之WebPages</a> </li><li> <a href="/article/dhgdsho.html">大家玩外服都用什么加速器?美國服務(wù)器vpn</a> </li><li> <a href="/article/dhgdsji.html">為什么微信保存的電話</a> </li><li> <a href="/article/dhgdsjo.html">5G引領(lǐng)“新基建”,這些安全問題不容忽視</a> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- 底部信息 --> <div id="i2qfrid" class="footer wow fadeInUp"> <div id="gcwicby" class="rowFluid"> <div id="wlzc2sw" class="span12"> <div id="3qt9ieg" class="container"> <div id="3yqcqyt" class="footer_content"> <div id="qoqdp4f" class="span4 col-xm-12"> <div id="rmpvy1f" class="footer_list"> <div id="sxrvpyl" class="span6"> <div id="tzc2j9c" class="bottom_logo"><img src="/Public/Home/images/ewm.jpg" alt="微信服務(wù)號二維碼" /></div> </div> <div id="kzlxcbn" class="span6 col-xm-12"> <div id="ujvzct4" class="quick_navigation"> <div id="oc8qnmh" class="quick_navigation_title">快速導(dǎo)航</div> <ul> <li><a title="光華村機(jī)房" target="_blank">光華村機(jī)房</a></li><li><a title="四川成都托管服務(wù)器" target="_blank">四川成都托管服務(wù)器</a></li><li><a title="湖北母嬰用品" target="_blank">湖北母嬰用品</a></li><li><a title="營山月子護(hù)理" target="_blank">營山月子護(hù)理</a></li><li><a title="柴油發(fā)電機(jī)維修" target="_blank">柴油發(fā)電機(jī)維修</a></li><li><a title="眉山做網(wǎng)站" target="_blank">眉山做網(wǎng)站</a></li><li><a title="廣漢柴油發(fā)電機(jī)保養(yǎng)" target="_blank">廣漢柴油發(fā)電機(jī)保養(yǎng)</a></li><li><a title="大悟縣網(wǎng)站建設(shè)" target="_blank">大悟縣網(wǎng)站建設(shè)</a></li><li><a title="武侯區(qū)工商注冊" target="_blank">武侯區(qū)工商注冊</a></li><li><a title="金牛區(qū)發(fā)電機(jī)公司" target="_blank">金牛區(qū)發(fā)電機(jī)公司</a></li><li><a title="成都發(fā)電機(jī)租用" target="_blank">成都發(fā)電機(jī)租用</a></li> </ul> </div> </div> </div> </div> <div id="wisugez" class="span4 col-xm-6 col-xs-12"> <div id="lqkyt49" class="footer_list"> <div id="qxkwpg3" class="footer_link"> <div id="x9svhpk" class="footer_link_title">友情鏈接</div> <ul id="frientLinks"> <a title="網(wǎng)站制作" target="_blank">網(wǎng)站制作</a> <a title="網(wǎng)站建設(shè)" target="_blank">網(wǎng)站建設(shè)</a> <a title="成都網(wǎng)絡(luò)推廣" target="_blank">網(wǎng)絡(luò)推廣</a> <a title="成都網(wǎng)站推廣" target="_blank">網(wǎng)站推廣</a> <a title="成都微信小程序開發(fā)" target="_blank">小程序開發(fā)</a> <a title="創(chuàng)新互聯(lián)網(wǎng)站欄目導(dǎo)航" target="_blank">網(wǎng)站導(dǎo)航</a> </ul> <div id="4cx8okw" class="footer_link_title">網(wǎng)站建設(shè)</div> <ul id="frientLinks"> <li><a href="/">四川平武建站</a></li> <li><a title="創(chuàng)新互聯(lián)網(wǎng)站欄目導(dǎo)航" target="_blank">網(wǎng)站導(dǎo)航</a></li> </ul> </div> </div> </div> <div id="r4sgbre" class="span4 col-xm-6 col-xs-12"> <div id="hmgjvm9" class="footer_list"> <div id="jps3ke2" class="footer_cotact"> <div id="19fjmvi" class="footer_cotact_title">聯(lián)系方式</div> <ul> <li><span id="lq1b4jx" class="footer_cotact_type">企業(yè):</span><span id="spjvzql" class="footer_cotact_content">四川綿陽平武網(wǎng)站建設(shè)工作室</span></li> <li><span id="wbwquup" class="footer_cotact_type">地址:</span><span id="znkoaae" class="footer_cotact_content">成都市青羊區(qū)太升南路288號</span></li> <li><span id="boau8jv" class="footer_cotact_type">電話:</span><span id="4qa94c3" class="footer_cotact_content"><a href="tel:18980820575" class="call">18980820575</a></span></li> <li><span id="2h26hto" class="footer_cotact_type">網(wǎng)址:</span><span id="hmployu" class="footer_cotact_content"><a href="/" title="四川平武網(wǎng)站建設(shè)">m.5511xx.com</a></span></li> </ul> </div> </div> </div> </div> </div> <div id="jp9y27a" class="copyright"> <p>公司名稱:四川綿陽平武網(wǎng)站建設(shè)工作室 聯(lián)系電話:18980820575</p> <p><a target="_blank" rel="nofollow">網(wǎng)站備案號:蜀ICP備2024061352號-3</a></p> <p>四川平武建站 四川平武網(wǎng)站建設(shè) 四川平武網(wǎng)站設(shè)計(jì) 四川平武網(wǎng)站制作 <a target="_blank">成都做網(wǎng)站</a></p> </div> </div> </div> </div> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.5511xx.com/" title="日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区">日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区</a> <div class="friend-links"> </div> </div> </footer> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body><div id="a4ex4" class="pl_css_ganrao" style="display: none;"><b id="a4ex4"></b><del id="a4ex4"><wbr id="a4ex4"><dfn id="a4ex4"></dfn></wbr></del><strike id="a4ex4"><code id="a4ex4"><del id="a4ex4"></del></code></strike><b id="a4ex4"></b><th id="a4ex4"><acronym id="a4ex4"><i id="a4ex4"></i></acronym></th><tr id="a4ex4"></tr><bdo id="a4ex4"></bdo><strike id="a4ex4"></strike><u id="a4ex4"></u><i id="a4ex4"><strong id="a4ex4"><pre id="a4ex4"></pre></strong></i><p id="a4ex4"><dfn id="a4ex4"><ul id="a4ex4"></ul></dfn></p><ruby id="a4ex4"></ruby><th id="a4ex4"></th><acronym id="a4ex4"></acronym><dfn id="a4ex4"><ul id="a4ex4"><strike id="a4ex4"></strike></ul></dfn><tbody id="a4ex4"></tbody><wbr id="a4ex4"></wbr><fieldset id="a4ex4"><form id="a4ex4"><dd id="a4ex4"></dd></form></fieldset><span id="a4ex4"><listing id="a4ex4"><small id="a4ex4"></small></listing></span><tr id="a4ex4"></tr><tbody id="a4ex4"></tbody><track id="a4ex4"></track><ol id="a4ex4"><menu id="a4ex4"><rp id="a4ex4"></rp></menu></ol><span id="a4ex4"><code id="a4ex4"><em id="a4ex4"></em></code></span><tbody id="a4ex4"></tbody><th id="a4ex4"></th><strong id="a4ex4"><pre id="a4ex4"><ol id="a4ex4"></ol></pre></strong><bdo id="a4ex4"><b id="a4ex4"><source id="a4ex4"></source></b></bdo><menu id="a4ex4"><rp id="a4ex4"><th id="a4ex4"></th></rp></menu><p id="a4ex4"><abbr id="a4ex4"><ul id="a4ex4"></ul></abbr></p><bdo id="a4ex4"><b id="a4ex4"><source id="a4ex4"></source></b></bdo><table id="a4ex4"><dd id="a4ex4"><cite id="a4ex4"></cite></dd></table><cite id="a4ex4"><u id="a4ex4"><center id="a4ex4"></center></u></cite><legend id="a4ex4"></legend><s id="a4ex4"><label id="a4ex4"><acronym id="a4ex4"></acronym></label></s><em id="a4ex4"></em><table id="a4ex4"><dd id="a4ex4"><cite id="a4ex4"></cite></dd></table><dfn id="a4ex4"><option id="a4ex4"><source id="a4ex4"></source></option></dfn><cite id="a4ex4"></cite><tr id="a4ex4"><strike id="a4ex4"><label id="a4ex4"></label></strike></tr><em id="a4ex4"><tr id="a4ex4"><style id="a4ex4"></style></tr></em><ul id="a4ex4"></ul><center id="a4ex4"></center><em id="a4ex4"></em><pre id="a4ex4"><s id="a4ex4"></s></pre><fieldset id="a4ex4"><form id="a4ex4"><dd id="a4ex4"></dd></form></fieldset><label id="a4ex4"><form id="a4ex4"><dl id="a4ex4"></dl></form></label><style id="a4ex4"><th id="a4ex4"><span id="a4ex4"></span></th></style><s id="a4ex4"><label id="a4ex4"><tbody id="a4ex4"></tbody></label></s><strong id="a4ex4"></strong><dl id="a4ex4"></dl><strong id="a4ex4"></strong><dd id="a4ex4"><label id="a4ex4"><u id="a4ex4"></u></label></dd><tr id="a4ex4"></tr><rp id="a4ex4"></rp><span id="a4ex4"><code id="a4ex4"><em id="a4ex4"></em></code></span><source id="a4ex4"><form id="a4ex4"><del id="a4ex4"></del></form></source><pre id="a4ex4"></pre><th id="a4ex4"><cite id="a4ex4"><u id="a4ex4"></u></cite></th><tr id="a4ex4"></tr><tbody id="a4ex4"></tbody><pre id="a4ex4"></pre><label id="a4ex4"></label><span id="a4ex4"><code id="a4ex4"><em id="a4ex4"></em></code></span><tr id="a4ex4"></tr><dd id="a4ex4"></dd><menu id="a4ex4"><rp id="a4ex4"><th id="a4ex4"></th></rp></menu><ol id="a4ex4"></ol><code id="a4ex4"></code><strike id="a4ex4"></strike><strike id="a4ex4"></strike><listing id="a4ex4"><del id="a4ex4"><p id="a4ex4"></p></del></listing><del id="a4ex4"><cite id="a4ex4"><abbr id="a4ex4"></abbr></cite></del><tr id="a4ex4"></tr><wbr id="a4ex4"><dfn id="a4ex4"><b id="a4ex4"></b></dfn></wbr><s id="a4ex4"><th id="a4ex4"><span id="a4ex4"></span></th></s><ruby id="a4ex4"><ol id="a4ex4"><label id="a4ex4"></label></ol></ruby><ol id="a4ex4"></ol><i id="a4ex4"><tbody id="a4ex4"><tr id="a4ex4"></tr></tbody></i><option id="a4ex4"><span id="a4ex4"><i id="a4ex4"></i></span></option><s id="a4ex4"><th id="a4ex4"><tbody id="a4ex4"></tbody></th></s><p id="a4ex4"><bdo id="a4ex4"><b id="a4ex4"></b></bdo></p><form id="a4ex4"><legend id="a4ex4"><label id="a4ex4"></label></legend></form><p id="a4ex4"><bdo id="a4ex4"><b id="a4ex4"></b></bdo></p><label id="a4ex4"><abbr id="a4ex4"><div id="a4ex4"></div></abbr></label><strong id="a4ex4"></strong><style id="a4ex4"></style><dfn id="a4ex4"></dfn><dl id="a4ex4"></dl><option id="a4ex4"></option><p id="a4ex4"><bdo id="a4ex4"><b id="a4ex4"></b></bdo></p><strong id="a4ex4"><listing id="a4ex4"><dd id="a4ex4"></dd></listing></strong><abbr id="a4ex4"></abbr><abbr id="a4ex4"><center id="a4ex4"><strong id="a4ex4"></strong></center></abbr><dd id="a4ex4"></dd><tbody id="a4ex4"></tbody><ul id="a4ex4"></ul><ruby id="a4ex4"></ruby><tbody id="a4ex4"><i id="a4ex4"><track id="a4ex4"></track></i></tbody></div> </html>