• <p id="p9uxq"><strike id="p9uxq"></strike></p>
    <abbr id="p9uxq"><strike id="p9uxq"></strike></abbr>
  • <i id="p9uxq"><legend id="p9uxq"></legend></i>


    ?
    ???
    ?????

    ???????

    ?????????
    ??????? <\/div>
    ????? <\/td>
    ?????

    ???????
    ????? <\/td>
    ??? <\/tr>
    ? <\/table>
    <\/form>
    <\/body>
    <\/html><\/p>\n


    二,搜索程序
    再在根目錄下建個(gè)search.php 的文件,用來處理search.htm表單傳過來的數(shù)據(jù).內(nèi)容如下
    \/\/獲取搜索關(guān)鍵字
    $keyword=trim($_POST[“keyword”]);
    \/\/檢查是否為空
    if($keyword==””){
       echo”您要搜索的關(guān)鍵字不能為空”;
       exit;\/\/結(jié)束程序
    }
    ?><\/p>\n

    這樣如果訪問者輸入的關(guān)鍵字為空時(shí),可以做出提示。下面是遍歷所有文件。<\/p>\n

    我們可以用遞歸的方法遍歷所有的文件,可以用函數(shù)opendir,readdir,也可以用PHP Directory的類。我們現(xiàn)在用前者.
      \/\/遍歷所有文件的函數(shù)
      function listFiles($dir){
       $handle=opendir($dir);
       while(false!==($file=readdir($handle))){
              if($file!=\".\"&&$file!=\"..\"){
              \/\/如果是目錄就繼續(xù)搜索
              if(is_dir(\"$dir\/$file\")){
                 listFiles(\"$dir\/$file\");
              }
                  else{
                \/\/在這里進(jìn)行處理
                 }
          }
       }
    }<\/P>

    ?><\/p>\n

    在紅字的地方我們可以對搜索到的文件進(jìn)行讀取,處理.下面就是讀取文件內(nèi)容,并檢查內(nèi)容中是否含有關(guān)鍵字$keyword,如果含有就把文件地址賦給一個(gè)數(shù)組。
    \/\/$dir是搜索的目錄,$keyword是搜索的關(guān)鍵字 ,$array是存放的數(shù)組
    function listFiles($dir,$keyword,&$array){
       $handle=opendir($dir);
       while(false!==($file=readdir($handle))){
              if($file!=\".\"&&$file!=\"..\"){
              if(is_dir(\"$dir\/$file\")){
                 listFiles(\"$dir\/$file\",$keyword,$array);
              }
                  else{
                \/\/讀取文件內(nèi)容
                $data=fread(fopen(\"$dir\/$file\",\"r\"),filesize(\"$dir\/$file\"));
                \/\/不搜索自身
                if($file!=”search.php”){
                  \/\/是否匹配
                              if(eregi(\"$keyword\",$data)){
                      $array[]=\"$dir\/$file\";
                              }
                }
                 }
          }
       }
    }
    \/\/定義數(shù)組$array
    $array=array();
    \/\/執(zhí)行函數(shù)
    listFiles(\".\",\"php\",$array);
    \/\/打印搜索結(jié)果
    foreach($array as $value){
       echo \"$value\".\"
    \\n\";
    }
    ?><\/p>\n

    現(xiàn)在把這個(gè)結(jié)果和開頭的一段程序結(jié)合起來,輸入一個(gè)關(guān)鍵字,然后就會(huì)發(fā)現(xiàn)你的網(wǎng)站中的相關(guān)結(jié)果都被搜索出來了。我們現(xiàn)在在把它完善一下。
    1,列出內(nèi)容的標(biāo)題

    ????????????????????????? if(eregi(\"$keyword\",$data)){
    ????????????????? $array[]=\"$dir\/$file\";
    ????????????????????????? }
    改成
    ????????????????????????? if(eregi(\"$keyword\",$data)){
    ?????????????????????????????????? if(eregi(\"(.+)<\/title>\",$data,$m)){<br>??????????????????????? $title=$m[\"1\"];<br>?????????????????????????????????? }<br>?????????????????????????????????? else{<br>??????????????????????? $title=\"沒有標(biāo)題\";<br>?????????????????????????????????? }<br>?????????????????????????????????? $array[]=\"$dir\/$file $title\";<br>?????????????????????????? }<br>原理就是,如果在文件內(nèi)容中找到<title>xxx<\/title>,那么就把xxx取出來作為標(biāo)題,如果找不到那么就把標(biāo)題命名未”沒有標(biāo)題”.<\/p>\n<p>2,只搜索網(wǎng)頁的內(nèi)容的主題部分。<br>做網(wǎng)頁時(shí)一定會(huì)有很多html代碼在里面,而這些都不是我們想要搜索的,所以要去除它們。我現(xiàn)在用正則表達(dá)式和strip_tags的配合,并不能把所有的都去掉。<br>把<br>??????????? $data=fread(fopen(\"$dir\/$file\",\"r\"),filesize(\"$dir\/$file\"));<br>??????????? \/\/不搜索自身<br>??????????? if($file!=”search.php”){<br>????????????? \/\/是否匹配<br>????????????????????????? if(eregi(\"$keyword\",$data)){<br>改為 <br>$data=fread(fopen(\"$dir\/$file\",\"r\"),filesize(\"$dir\/$file\"));<br>?????????? if(eregi(\"<body([^> <h1><a href="http://www.miracleart.cn/">国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂</a></h1>]+)>(.+)<\/body>\",$data,$b)){<br>???????????????? $body=strip_tags($b[\"2\"]);<br>??????????????????????? }<br>??????????????????????? else{<br>???????????????? $body=strip_tags($data);<br>??????????????????????? }<br>??????????????????????? if($file!=\"search.php\"){<br>??????????????????????????? if(eregi(\"$keyword\",$body)){<\/p>\n<p>3,標(biāo)題上加鏈接<br>foreach($array as $value){<br>?? echo \"$value\".\"<br>\\n\";<br>}<br>改成<br>foreach($array as $value){<br>?? \/\/拆開<br>?? list($filedir,$title)=split(“[ ]”,$value,”2”);<br>?? \/\/輸出<br>?? echo \"<a href=$filedir>$value<\/a>\".\"<br>\\n\";<br>}<br>4防止超時(shí)<br>如果文件比較多,那么防止PHP執(zhí)行時(shí)間超時(shí)是必要的??梢栽谖募^加上<br>set_time_limit(“600”);<br>以秒為單位,所以上面是設(shè)10分鐘為限。<\/p>\n<p><br>So the complete program is<br><?php<br>set_time_limit(\"600\");<br>\/\/Get the search keyword<br>$keyword=trim($_POST[\"keyword \"]);<br>\/\/Check if it is empty<br>if($keyword==\"\"){<br> echo \"The keyword you want to search cannot be empty\";<br> exit;\/\/End Program<br>}<br>function listFiles($dir,$keyword,&$array){<br> $handle=opendir($dir);<br> while(false!==($file=readdir($ handle))){<br> If($file!=\".\"&&$file!=\"..\"){<br> if(is_dir(\"$dir\/$file\")){<br> listFiles( \"$dir\/$file\",$keyword,$array);<br>???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????. $dir\/$file\"));<br> If(eregi(\"<body([^>]+)>(.+)<\/body>\",$data,$b)){<br>??????????????? $body=strip_tags($b[\"2\"]);???????????????????????????????????????????????????$body=strip_tags($data);<br>????????????????????????????????????????????????????????????????????????????????????\"search.php\"){<br> if(eregi(\"$keyword\",$body)){<br> if(eregi(\"<title>(.+)<\/title&g t;\",$data, $m)){<BR>???????????????????????????????????????????????????????????????????????????????????????????else{<BR> $title=\"No title\";<BR> }<BR> $array[] =\"$dir\/$file $title\";<BR>??????????????????????????????????????????????????????????????????????????????????????????????????????????>}<BR>$array=array();<BR>listFiles( \".\",\"$keyword\",$array);<BR>foreach($array as $value){<BR> \/\/Split<BR> list($filedir,$title)=split(\"[ ]\" ,$value,\"2\");<BR> \/\/Output<BR> echo \"<a href=$filedir target=_blank>$title <\/a>\".\"<br>n\";<br>}<br>?><br><br>So far, you have built your own search engine. You can also improve it by modifying the content processing part. You can search for titles or search for content. Function. Also consider pagination. Keep this to yourself. <br><br>Here is a description of using preg_match instead of eregi, which will be much faster. This is just for easy understanding, so the commonly used eregi is used. <br><br> <br>\n<br><\/p>\n<p align=\"left\"><\/p>\n<div style=\"display:none;\">\n<span id=\"url\" itemprop=\"url\">http:\/\/www.bkjia.com\/PHPjc\/314558.html<\/span><span id=\"indexUrl\" itemprop=\"indexUrl\">www.bkjia.com<\/span><span id=\"isOriginal\" itemprop=\"isOriginal\">true<\/span><span id=\"isBasedOnUrl\" itemprop=\"isBasedOnUrl\">http: \/\/www.bkjia.com\/PHPjc\/314558.html<\/span><span id=\"genre\" itemprop=\"genre\">TechArticle<\/span><span id=\"description\" itemprop=\"description\">ccterran (original work) Author: iwind A friend made a website using Dreamweaver. There is no dynamic content, just some personal collections. articles, personal introductions, etc. There is more content now...<\/span>\n<\/div>\n<div id="377j5v51b" class=\"art_confoot\"><\/div>"} </script> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> <script>var V_PATH="/";window.onerror=function(){ return true; };</script> </head> <body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2"> <link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css"> <header> <div id="377j5v51b" class="head"> <div id="377j5v51b" class="haed_left"> <div id="377j5v51b" class="haed_logo"> <a href="http://www.miracleart.cn/" title="" class="haed_logo_a"> <img src="/static/imghw/logo.png" alt="" class="haed_logoimg"> </a> </div> <div id="377j5v51b" class="head_nav"> <div id="377j5v51b" class="head_navs"> <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a> <div class="377j5v51b" id="dropdown-template1" style="display: none;"> <div id="377j5v51b" class="languagechoose"> <a href="http://www.miracleart.cn/article.html" title="Articles" class="languagechoosea on">Articles</a> <a href="http://www.miracleart.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a> <a href="http://www.miracleart.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a> </div> </div> </div> <div id="377j5v51b" class="head_navs"> <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a> <div class="377j5v51b" id="dropdown-template1_1" style="display: none;"> <div id="377j5v51b" class="languagechoose"> <a href="http://www.miracleart.cn/course.html" title="Course" class="languagechoosea on">Course</a> <a href="http://www.miracleart.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a> </div> </div> </div> <div id="377j5v51b" class="head_navs"> <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a> <div class="377j5v51b" id="dropdown-template1_2" style="display: none;"> <div id="377j5v51b" class="languagechoose"> <a href="http://www.miracleart.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a> <a href="http://www.miracleart.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a> <a href="http://www.miracleart.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a> <a href="http://www.miracleart.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a> <a href="http://www.miracleart.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a> <a href="http://www.miracleart.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a> </div> </div> </div> <div id="377j5v51b" class="head_navs"> <a href="http://www.miracleart.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a> </div> <div id="377j5v51b" class="head_navs"> <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a> <div class="377j5v51b" id="dropdown-template1_3" style="display: none;"> <div id="377j5v51b" class="languagechoose"> <a href="http://www.miracleart.cn/game" title="Game Download" class="languagechoosea on">Game Download</a> <a href="http://www.miracleart.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a> </div> </div> </div> </div> </div> <div id="377j5v51b" class="head_search"> <input id="key_words" onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value=""> <a href="javascript:;" title="search" onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a> </div> <div id="377j5v51b" class="head_right"> <div id="377j5v51b" class="haed_language"> <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a> <div class="377j5v51b" id="dropdown-template" style="display: none;"> <div id="377j5v51b" class="languagechoose"> <a href="javascript:setlang('zh-cn');" title="簡體中文" class="languagechoosea">簡體中文</a> <a href="javascript:;" title="English" class="languagechoosea">English</a> <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a> <a href="javascript:setlang('ja');" title="日本語" class="languagechoosea">日本語</a> <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a> <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a> <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a> <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a> </div> </div> </div> <span id="377j5v51b" class="head_right_line"></span> <div style="display: block;" id="login" class="haed_login "> <a href="javascript:;" title="Login" class="haed_logina ">Login</a> </div> <div style="display: block;" id="reg" class="head_signup login"> <a href="javascript:;" title="singup" class="head_signupa">singup</a> </div> </div> </div> </header> <main> <div id="377j5v51b" class="Article_Details_main"> <div id="377j5v51b" class="Article_Details_main1"> <div id="377j5v51b" class="Article_Details_main1M"> <div id="377j5v51b" class="phpgenera_Details_mainL1"> <a href="http://www.miracleart.cn/" title="Home" class="phpgenera_Details_mainL1a">Home</a> <img src="/static/imghw/top_right.png" alt="" /> <a href="http://www.miracleart.cn/be/" class="phpgenera_Details_mainL1a">Backend Development</a> <img src="/static/imghw/top_right.png" alt="" /> <a href="http://www.miracleart.cn/php-weizijiaocheng.html" class="phpgenera_Details_mainL1a">PHP Tutorial</a> <img src="/static/imghw/top_right.png" alt="" /> <span>Make your own on-site search engine_PHP tutorial</span> </div> <div id="377j5v51b" class="Articlelist_txts"> <div id="377j5v51b" class="Articlelist_txts_info"> <h1 class="Articlelist_txts_title">Make your own on-site search engine_PHP tutorial</h1> <div id="377j5v51b" class="Articlelist_txts_info_head"> <div id="377j5v51b" class="author_info"> <a href="http://www.miracleart.cn/member/887227.html" class="author_avatar"> <img class="lazy" data-src="https://img.php.cn/upload/avatar/000/887/227/63bb7851c9547215.jpg" src="/static/imghw/default1.png" alt="WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB"> </a> <div id="377j5v51b" class="author_detail"> <a href="http://www.miracleart.cn/member/887227.html" class="author_name">WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB</a> </div> </div> </div> <span id="377j5v51b" class="Articlelist_txts_time">Jul 21, 2016 pm 04:09 PM</span> <div id="377j5v51b" class="Articlelist_txts_infos"> <span id="377j5v51b" class="Articlelist_txts_infoss on">dreamweaver</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">author</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">search engine</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">friend</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">use</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">website</span> <span id="377j5v51b" class="Articlelist_txts_infoss ">Own</span> </div> </div> </div> <hr /> <div id="377j5v51b" class="article_main php-article"> <div id="377j5v51b" class="article-list-left detail-content-wrap content"> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3461856641"> </ins> <p> </p> <p>ccterran(原作) </p> <p>作者:iwind</p> <p>? 朋友用dreamweaver做了一個(gè)網(wǎng)站,沒有動(dòng)態(tài)的內(nèi)容,只是一些個(gè)人收藏的文章,個(gè)人介紹等等。現(xiàn)在內(nèi)容比較多了,想叫我?guī)退鲆粋€(gè)搜索引擎。說實(shí)在的,這是一個(gè)不難的問題,于是就隨手做了一個(gè)。現(xiàn)在我在其它論壇上也看到有人想做這個(gè),于是就想說說這方面的知識,重在了解一下方法。</p> <p>寫程序前先要想好一個(gè)思路,下面是我的思路,可能誰有更好的,但注意這只是一個(gè)方法問題 :遍歷所有文件 ? 讀取內(nèi)容 ? 搜索關(guān)鍵字,如果匹配就放入一個(gè)數(shù)組 ? 讀數(shù)組。在實(shí)現(xiàn)這些步驟之前,我假定你的網(wǎng)頁都是標(biāo)準(zhǔn)的,就是有標(biāo)題(<title>),也有( ),如果你是用dreamweaver或者frontpage設(shè)計(jì)的,那么除非你故意刪掉,它們都在存在的。下面就讓我們一步步來完成并在工程中改善這個(gè)搜索引擎。

    一,設(shè)計(jì)搜索表單
    在網(wǎng)站的根目錄下建個(gè)search.htm,內(nèi)容如下


    搜索表單



    ?


    ???
    ?????
    ?????
    ???
    ?

    ???????

    ?????????
    ???????

    ?????

    ???????
    ?????




    二,搜索程序
    再在根目錄下建個(gè)search.php 的文件,用來處理search.htm表單傳過來的數(shù)據(jù).內(nèi)容如下
    //獲取搜索關(guān)鍵字
    $keyword=trim($_POST[“keyword”]);
    //檢查是否為空
    if($keyword==””){
    echo”您要搜索的關(guān)鍵字不能為空”;
    exit;//結(jié)束程序
    }
    ?>

    這樣如果訪問者輸入的關(guān)鍵字為空時(shí),可以做出提示。下面是遍歷所有文件。

    我們可以用遞歸的方法遍歷所有的文件,可以用函數(shù)opendir,readdir,也可以用PHP Directory的類。我們現(xiàn)在用前者.
    //遍歷所有文件的函數(shù)
    function listFiles($dir){
    $handle=opendir($dir);
    while(false!==($file=readdir($handle))){
    if($file!="."&&$file!=".."){
    //如果是目錄就繼續(xù)搜索
    if(is_dir("$dir/$file")){
    listFiles("$dir/$file");
    }
    else{
    //在這里進(jìn)行處理
    }
    }
    }
    }

    ?>

    在紅字的地方我們可以對搜索到的文件進(jìn)行讀取,處理.下面就是讀取文件內(nèi)容,并檢查內(nèi)容中是否含有關(guān)鍵字$keyword,如果含有就把文件地址賦給一個(gè)數(shù)組。
    //$dir是搜索的目錄,$keyword是搜索的關(guān)鍵字 ,$array是存放的數(shù)組
    function listFiles($dir,$keyword,&$array){
    $handle=opendir($dir);
    while(false!==($file=readdir($handle))){
    if($file!="."&&$file!=".."){
    if(is_dir("$dir/$file")){
    listFiles("$dir/$file",$keyword,$array);
    }
    else{
    //讀取文件內(nèi)容
    $data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));
    //不搜索自身
    if($file!=”search.php”){
    //是否匹配
    if(eregi("$keyword",$data)){
    $array[]="$dir/$file";
    }
    }
    }
    }
    }
    }
    //定義數(shù)組$array
    $array=array();
    //執(zhí)行函數(shù)
    listFiles(".","php",$array);
    //打印搜索結(jié)果
    foreach($array as $value){
    echo "$value"."
    \n";
    }
    ?>

    現(xiàn)在把這個(gè)結(jié)果和開頭的一段程序結(jié)合起來,輸入一個(gè)關(guān)鍵字,然后就會(huì)發(fā)現(xiàn)你的網(wǎng)站中的相關(guān)結(jié)果都被搜索出來了。我們現(xiàn)在在把它完善一下。
    1,列出內(nèi)容的標(biāo)題

    ????????????????????????? if(eregi("$keyword",$data)){
    ????????????????? $array[]="$dir/$file";
    ????????????????????????? }
    改成
    ????????????????????????? if(eregi("$keyword",$data)){
    ?????????????????????????????????? if(eregi("(.+)",$data,$m)){
    ??????????????????????? $title=$m["1"];
    ?????????????????????????????????? }
    ?????????????????????????????????? else{
    ??????????????????????? $title="沒有標(biāo)題";
    ?????????????????????????????????? }
    ?????????????????????????????????? $array[]="$dir/$file $title";
    ?????????????????????????? }
    原理就是,如果在文件內(nèi)容中找到xxx,那么就把xxx取出來作為標(biāo)題,如果找不到那么就把標(biāo)題命名未”沒有標(biāo)題”.

    2,只搜索網(wǎng)頁的內(nèi)容的主題部分。
    做網(wǎng)頁時(shí)一定會(huì)有很多html代碼在里面,而這些都不是我們想要搜索的,所以要去除它們。我現(xiàn)在用正則表達(dá)式和strip_tags的配合,并不能把所有的都去掉。

    ??????????? $data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));
    ??????????? //不搜索自身
    ??????????? if($file!=”search.php”){
    ????????????? //是否匹配
    ????????????????????????? if(eregi("$keyword",$data)){
    改為
    $data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));
    ?????????? if(eregi("]+)>(.+)",$data,$b)){
    ???????????????? $body=strip_tags($b["2"]);
    ??????????????????????? }
    ??????????????????????? else{
    ???????????????? $body=strip_tags($data);
    ??????????????????????? }
    ??????????????????????? if($file!="search.php"){
    ??????????????????????????? if(eregi("$keyword",$body)){

    3,標(biāo)題上加鏈接
    foreach($array as $value){
    ?? echo "$value"."
    \n";
    }
    改成
    foreach($array as $value){
    ?? //拆開
    ?? list($filedir,$title)=split(“[ ]”,$value,”2”);
    ?? //輸出
    ?? echo "$value"."
    \n";
    }
    4防止超時(shí)
    如果文件比較多,那么防止PHP執(zhí)行時(shí)間超時(shí)是必要的。可以在文件頭加上
    set_time_limit(“600”);
    以秒為單位,所以上面是設(shè)10分鐘為限。


    So the complete program is
    set_time_limit("600");
    //Get the search keyword
    $keyword=trim($_POST["keyword "]);
    //Check if it is empty
    if($keyword==""){
    echo "The keyword you want to search cannot be empty";
    exit;//End Program
    }
    function listFiles($dir,$keyword,&$array){
    $handle=opendir($dir);
    while(false!==($file=readdir($ handle))){
    If($file!="."&&$file!=".."){
    if(is_dir("$dir/$file")){
    listFiles( "$dir/$file",$keyword,$array);
    ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????. $dir/$file"));
    If(eregi("]+)>(.+)",$data,$b)){
    ??????????????? $body=strip_tags($b["2"]);???????????????????????????????????????????????????$body=strip_tags($data);
    ????????????????????????????????????????????????????????????????????????????????????"search.php"){
    if(eregi("$keyword",$body)){
    if(eregi("(.+)</title&g t;",$data, $m)){<BR>???????????????????????????????????????????????????????????????????????????????????????????else{<BR> $title="No title";<BR> }<BR> $array[] ="$dir/$file $title";<BR>??????????????????????????????????????????????????????????????????????????????????????????????????????????>}<BR>$array=array();<BR>listFiles( ".","$keyword",$array);<BR>foreach($array as $value){<BR> //Split<BR> list($filedir,$title)=split("[ ]" ,$value,"2");<BR> //Output<BR> echo "<a href=$filedir target=_blank>$title </a>"."<br>n";<br>}<br>?><br><br>So far, you have built your own search engine. You can also improve it by modifying the content processing part. You can search for titles or search for content. Function. Also consider pagination. Keep this to yourself. <br><br>Here is a description of using preg_match instead of eregi, which will be much faster. This is just for easy understanding, so the commonly used eregi is used. <br><br> <br> <br></p> <p align="left"></p> <div style="display:none;"> <span id="url" itemprop="url">http://www.bkjia.com/PHPjc/314558.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http: //www.bkjia.com/PHPjc/314558.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">ccterran (original work) Author: iwind A friend made a website using Dreamweaver. There is no dynamic content, just some personal collections. articles, personal introductions, etc. There is more content now...</span> </div> <div id="377j5v51b" class="art_confoot"></div> </div> </div> <div id="377j5v51b" class="wzconShengming_sp"> <div id="377j5v51b" class="bzsmdiv_sp">Statement of this Website</div> <div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <div id="377j5v51b" class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <!-- <div id="377j5v51b" class="phpgenera_Details_mainR4"> <div id="377j5v51b" class="phpmain1_4R_readrank"> <div id="377j5v51b" class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Article</h2> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottom"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821119.html" title="Guide: Stellar Blade Save File Location/Save File Lost/Not Saving" class="phpgenera_Details_mainR4_bottom_title">Guide: Stellar Blade Save File Location/Save File Lost/Not Saving</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By DDD</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By Jack chen</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_more"> <a href="http://www.miracleart.cn/article.html">Show More</a> </div> </div> </div> --> <div id="377j5v51b" class="phpgenera_Details_mainR3"> <div id="377j5v51b" class="phpmain1_4R_readrank"> <div id="377j5v51b" class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Hot AI Tools</h2> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_bottom"> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>Undress images for free</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>AI-powered app for creating realistic nude photos</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>Online AI tool for removing clothes from photos.</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI clothes remover</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_more"> <a href="http://www.miracleart.cn/ai">Show More</a> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4"> <div id="377j5v51b" class="phpmain1_4R_readrank"> <div id="377j5v51b" class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Article</h2> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottom"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821119.html" title="Guide: Stellar Blade Save File Location/Save File Lost/Not Saving" class="phpgenera_Details_mainR4_bottom_title">Guide: Stellar Blade Save File Location/Save File Lost/Not Saving</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By DDD</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By Jack chen</span> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <span>4 weeks ago</span> <span>By Jack chen</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_more"> <a href="http://www.miracleart.cn/article.html">Show More</a> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3"> <div id="377j5v51b" class="phpmain1_4R_readrank"> <div id="377j5v51b" class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Hot Tools</h2> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_bottom"> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title"> <h3>Notepad++7.3.1</h3> </a> <p>Easy-to-use and free code editor</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Chinese version</h3> </a> <p>Chinese version, very easy to use</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title"> <h3>Zend Studio 13.0.1</h3> </a> <p>Powerful PHP integrated development environment</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title"> <h3>Dreamweaver CS6</h3> </a> <p>Visual web development tools</p> </div> </div> <div id="377j5v51b" class="phpmain_tab2_mids_top"> <a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" /> </a> <div id="377j5v51b" class="phpmain_tab2_mids_info"> <a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac version</h3> </a> <p>God-level code editing software (SublimeText3)</p> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_more"> <a href="http://www.miracleart.cn/ai">Show More</a> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4"> <div id="377j5v51b" class="phpmain1_4R_readrank"> <div id="377j5v51b" class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Topics</h2> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottom"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/gmailyxdlrkzn" title="Where is the login entrance for gmail email?" class="phpgenera_Details_mainR4_bottom_title">Where is the login entrance for gmail email?</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>8638</span> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>17</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/java-tutorial" title="Java Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java Tutorial</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1783</span> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>16</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/cakephp-tutor" title="CakePHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP Tutorial</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1728</span> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>56</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1579</span> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>28</span> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms"> <a href="http://www.miracleart.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_info"> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1444</span> </div> <div id="377j5v51b" class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>31</span> </div> </div> </div> </div> <div id="377j5v51b" class="phpgenera_Details_mainR3_more"> <a href="http://www.miracleart.cn/faq/zt">Show More</a> </div> </div> </div> </div> </div> <div id="377j5v51b" class="Article_Details_main2"> <div id="377j5v51b" class="phpgenera_Details_mainL4"> <div id="377j5v51b" class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div id="377j5v51b" class="phpgenera_Details_mainL4_info"> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740641.html" title="How to adjust text position in dreamweaver" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040902242997109.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to adjust text position in dreamweaver" /> </a> <a href="http://www.miracleart.cn/faq/740641.html" title="How to adjust text position in dreamweaver" class="phphistorical_Version2_mids_title">How to adjust text position in dreamweaver</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 02:24 AM</span> <p class="Articlelist_txts_p">Adjusting the text position in Dreamweaver can be completed by the following steps: Select the text and use the text position adjuster to make horizontal adjustments: left alignment, right alignment, center alignment; 2. Make vertical adjustments: top alignment, bottom alignment, vertical center; 3. Press Shift key and use the arrow keys to fine-tune the position; 4. Use shortcut keys to quickly align: left alignment (Ctrl/Cmd + L), right alignment (Ctrl/Cmd + R), center alignment (Ctrl/Cmd + C).</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740627.html" title="How to add video to dreamweaver webpage production" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040901422246078.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to add video to dreamweaver webpage production" /> </a> <a href="http://www.miracleart.cn/faq/740627.html" title="How to add video to dreamweaver webpage production" class="phphistorical_Version2_mids_title">How to add video to dreamweaver webpage production</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 01:42 AM</span> <p class="Articlelist_txts_p">Embed video using Dreamweaver: Insert a video element. Select and upload a video file. Set video type, URL, size, autoplay and controls. Insert video. Optional: Customize the video appearance.</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740650.html" title="How to adjust line spacing in dreamweaver" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040903001934306.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to adjust line spacing in dreamweaver" /> </a> <a href="http://www.miracleart.cn/faq/740650.html" title="How to adjust line spacing in dreamweaver" class="phphistorical_Version2_mids_title">How to adjust line spacing in dreamweaver</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 03:00 AM</span> <p class="Articlelist_txts_p">Adjusting line spacing in Dreamweaver is a four-step process: select the text, open the Paragraph panel, adjust the Line Spacing options, and finally click OK to apply the changes.</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740648.html" title="How to set dreamweaver font" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040902542386965.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to set dreamweaver font" /> </a> <a href="http://www.miracleart.cn/faq/740648.html" title="How to set dreamweaver font" class="phphistorical_Version2_mids_title">How to set dreamweaver font</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 02:54 AM</span> <p class="Articlelist_txts_p">You can set fonts in Dreamweaver by selecting a font, size, and color using the Properties panel. Use CSS to set fonts for your entire website or specific elements. Set the font directly in the HTML code using the "font" tag.</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740639.html" title="How to set text size in dreamweaver" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040902182447504.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to set text size in dreamweaver" /> </a> <a href="http://www.miracleart.cn/faq/740639.html" title="How to set text size in dreamweaver" class="phphistorical_Version2_mids_title">How to set text size in dreamweaver</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 02:18 AM</span> <p class="Articlelist_txts_p">To set text size in Dreamweaver, just: Select the text Go to the Text menu Select Font Size Select the desired size Press Enter to save</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740609.html" title="How to set the web design software Dreamweaver to Chinese" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040900392293849.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to set the web design software Dreamweaver to Chinese" /> </a> <a href="http://www.miracleart.cn/faq/740609.html" title="How to set the web design software Dreamweaver to Chinese" class="phphistorical_Version2_mids_title">How to set the web design software Dreamweaver to Chinese</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 12:39 AM</span> <p class="Articlelist_txts_p">To set Dreamweaver to Chinese, follow these steps: Open Dreamweaver; change User Interface Language to Simplified Chinese or Traditional Chinese in the preferences; restart Dreamweaver; check the Help menu About Dreamweaver" item to verify the language settings.</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740638.html" title="How to indent text in dreamweaver" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040902152116108.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to indent text in dreamweaver" /> </a> <a href="http://www.miracleart.cn/faq/740638.html" title="How to indent text in dreamweaver" class="phphistorical_Version2_mids_title">How to indent text in dreamweaver</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 02:15 AM</span> <p class="Articlelist_txts_p">There are four ways to indent text in Dreamweaver: Indent a single paragraph: Format > Paragraph > Indent Indent multiple paragraphs: Set the indent value in the paragraph panel Use style: Set the indent value in the paragraph style dialog box Use indent Key: Tab key to indent right, Shift + Tab key to indent left</p> </div> <div id="377j5v51b" class="phphistorical_Version2_mids"> <a href="http://www.miracleart.cn/faq/740659.html" title="How to add pictures to dreamweaver" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202404/09/2024040903302239555.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to add pictures to dreamweaver" /> </a> <a href="http://www.miracleart.cn/faq/740659.html" title="How to add pictures to dreamweaver" class="phphistorical_Version2_mids_title">How to add pictures to dreamweaver</a> <span id="377j5v51b" class="Articlelist_txts_time">Apr 09, 2024 am 03:30 AM</span> <p class="Articlelist_txts_p">To insert a picture in Dreamweaver, click the Insert menu and choose Image, then navigate to the picture file and select it. Other methods include dragging and dropping files or inserting HTML code directly. Adjusting properties includes changing size, alignment, adding borders, and entering alt text.</p> </div> </div> <a href="http://www.miracleart.cn/be/" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div id="377j5v51b" class="footer"> <div id="377j5v51b" class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>Public welfare online PHP training,Help PHP learners grow quickly!</p> </div> <div id="377j5v51b" class="footermid"> <a href="http://www.miracleart.cn/about/us.html">About us</a> <a href="http://www.miracleart.cn/about/disclaimer.html">Disclaimer</a> <a href="http://www.miracleart.cn/update/article_0_1.html">Sitemap</a> </div> <div id="377j5v51b" class="footerbottom"> <p> ? php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.miracleart.cn/" title="国产av日韩一区二区三区精品">国产av日韩一区二区三区精品</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="mdgty" class="pl_css_ganrao" style="display: none;"><label id="mdgty"><pre id="mdgty"></pre></label><legend id="mdgty"></legend><em id="mdgty"></em><legend id="mdgty"><object id="mdgty"><sup id="mdgty"></sup></object></legend><blockquote id="mdgty"></blockquote><small id="mdgty"><dl id="mdgty"><acronym id="mdgty"><sub id="mdgty"></sub></acronym></dl></small><acronym id="mdgty"><del id="mdgty"><menu id="mdgty"><listing id="mdgty"></listing></menu></del></acronym><dfn id="mdgty"></dfn><dfn id="mdgty"></dfn><var id="mdgty"></var><strong id="mdgty"></strong><pre id="mdgty"></pre><button id="mdgty"><ins id="mdgty"><pre id="mdgty"></pre></ins></button><fieldset id="mdgty"></fieldset><th id="mdgty"><object id="mdgty"></object></th><button id="mdgty"><pre id="mdgty"></pre></button><b id="mdgty"><small id="mdgty"><fieldset id="mdgty"><dl id="mdgty"></dl></fieldset></small></b><center id="mdgty"><meter id="mdgty"><noframes id="mdgty"></noframes></meter></center><legend id="mdgty"></legend><optgroup id="mdgty"><legend id="mdgty"></legend></optgroup><label id="mdgty"></label><menuitem id="mdgty"></menuitem><menuitem id="mdgty"></menuitem><abbr id="mdgty"><table id="mdgty"></table></abbr><button id="mdgty"><option id="mdgty"><cite id="mdgty"></cite></option></button><th id="mdgty"><strike id="mdgty"></strike></th><thead id="mdgty"></thead><var id="mdgty"><wbr id="mdgty"><blockquote id="mdgty"><ruby id="mdgty"></ruby></blockquote></wbr></var><cite id="mdgty"><form id="mdgty"></form></cite><track id="mdgty"><input id="mdgty"><progress id="mdgty"></progress></input></track><var id="mdgty"></var><thead id="mdgty"><acronym id="mdgty"><menuitem id="mdgty"></menuitem></acronym></thead><tr id="mdgty"><tt id="mdgty"></tt></tr><rp id="mdgty"></rp><big id="mdgty"></big><kbd id="mdgty"><em id="mdgty"><var id="mdgty"></var></em></kbd><menu id="mdgty"><var id="mdgty"><wbr id="mdgty"></wbr></var></menu><style id="mdgty"><tbody id="mdgty"><tt id="mdgty"><center id="mdgty"></center></tt></tbody></style><center id="mdgty"></center><optgroup id="mdgty"><strong id="mdgty"><span id="mdgty"><font id="mdgty"></font></span></strong></optgroup><button id="mdgty"></button><nav id="mdgty"><thead id="mdgty"></thead></nav><u id="mdgty"><form id="mdgty"><pre id="mdgty"><tfoot id="mdgty"></tfoot></pre></form></u><dfn id="mdgty"></dfn><em id="mdgty"></em><font id="mdgty"><tbody id="mdgty"></tbody></font><object id="mdgty"></object><font id="mdgty"><dfn id="mdgty"><ol id="mdgty"></ol></dfn></font><cite id="mdgty"></cite><sup id="mdgty"><menuitem id="mdgty"><em id="mdgty"></em></menuitem></sup><delect id="mdgty"><font id="mdgty"></font></delect><i id="mdgty"></i><address id="mdgty"><tt id="mdgty"></tt></address><label id="mdgty"><center id="mdgty"></center></label><strike id="mdgty"><pre id="mdgty"></pre></strike><thead id="mdgty"></thead><legend id="mdgty"></legend><option id="mdgty"><i id="mdgty"><tr id="mdgty"><dfn id="mdgty"></dfn></tr></i></option><span id="mdgty"></span><th id="mdgty"></th><font id="mdgty"><dfn id="mdgty"><u id="mdgty"><dl id="mdgty"></dl></u></dfn></font><meter id="mdgty"></meter><optgroup id="mdgty"><legend id="mdgty"></legend></optgroup><bdo id="mdgty"></bdo><video id="mdgty"><track id="mdgty"><s id="mdgty"><progress id="mdgty"></progress></s></track></video><sub id="mdgty"></sub><thead id="mdgty"></thead><form id="mdgty"></form><pre id="mdgty"><span id="mdgty"><font id="mdgty"><li id="mdgty"></li></font></span></pre><source id="mdgty"></source><ruby id="mdgty"><i id="mdgty"><nav id="mdgty"><div id="mdgty"></div></nav></i></ruby><tr id="mdgty"><abbr id="mdgty"></abbr></tr><th id="mdgty"></th><noframes id="mdgty"></noframes><input id="mdgty"></input><strong id="mdgty"><label id="mdgty"><tfoot id="mdgty"></tfoot></label></strong><ins id="mdgty"></ins><dl id="mdgty"></dl><tbody id="mdgty"></tbody><tbody id="mdgty"></tbody><ins id="mdgty"><track id="mdgty"></track></ins><tbody id="mdgty"></tbody><rt id="mdgty"><source id="mdgty"></source></rt><dfn id="mdgty"></dfn><tt id="mdgty"></tt><code id="mdgty"><pre id="mdgty"><strike id="mdgty"><kbd id="mdgty"></kbd></strike></pre></code><label id="mdgty"><pre id="mdgty"></pre></label><meter id="mdgty"></meter><optgroup id="mdgty"><strike id="mdgty"><center id="mdgty"></center></strike></optgroup><fieldset id="mdgty"><i id="mdgty"><tr id="mdgty"></tr></i></fieldset><delect id="mdgty"></delect><object id="mdgty"><big id="mdgty"></big></object><strong id="mdgty"><dl id="mdgty"><th id="mdgty"><em id="mdgty"></em></th></dl></strong><tfoot id="mdgty"><em id="mdgty"><tt id="mdgty"><form id="mdgty"></form></tt></em></tfoot><object id="mdgty"></object><code id="mdgty"><pre id="mdgty"><strike id="mdgty"><font id="mdgty"></font></strike></pre></code><noframes id="mdgty"></noframes><form id="mdgty"><cite id="mdgty"></cite></form><mark id="mdgty"><video id="mdgty"><menu id="mdgty"></menu></video></mark></div> </html>