1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anh Tí và anh em giúp mình đoạn grab với

Discussion in 'PHP' started by solovekui, Sep 26, 2016.

  1. solovekui

    solovekui Member

    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
    File cat.php. em làm như sau
    Code:
    <?php
    
    /**
    * @ Grab Truyen Teenfic By Solovekui
    * @ website http://noidau.net
    * @ author Solovekui
    * @Solovekui :    xin vui long khong xoa dong nay de ton trong tac gia nhung ma xoa cung chang sao :D
    */
    include 'cn.php';
    $solovekui = $_GET['solove'];
    
    $url= "http://truyencuatui.net/the-loai/".$solovekui."";
    
    include 'fix.php';
    echo $solove;
    ?>
    Em Rewrite như sau.
    Code:
    RewriteRule ^the-loai/(.*)$ cat.php?solove=$1 [QSA,L,NC]
    Demo: http://truyencuatui.botay.pro/the-loai/huyen-huyen.html
    Sao next trang không dc a mong anh em fix giúp
     
  2. Đinh Quốc Hân

    Đinh Quốc Hân Đinh Quốc Hân Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    5,997
    Likes Received:
    27,589
    Trophy Points:
    12,605
    Chỉnh lại như vậy xem có được không

    PHP:
    <?php

    /**
    * @ Grab Truyen Teenfic By Solovekui
    * @ website http://noidau.net
    * @ author Solovekui
    * @Solovekui :    xin vui long khong xoa dong nay de ton trong tac gia nhung ma xoa cung chang sao :D
    */
    include 'cn.php';
    $solovekui $_GET['solove'];
    $page = (isset($_GET['page']) && $_GET['page'] > 0)? intval($_GET['page']) : 1;

    $url"http://truyencuatui.net/the-loai/{$solovekui}?page={$page}";

    include 
    'fix.php';
    echo 
    $solove;
    ?>
     
    solovekui and NamLee like this.
  3. solovekui

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
    Còn Rewrite nữa anh
     
  4. NamLee

    NamLee Bơ Đi Mà Sống Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    1,907
    Likes Received:
    1,527
    Trophy Points:
    113
     
    solovekui likes this.
  5. Đinh Quốc Hân

    Đinh Quốc Hân Đinh Quốc Hân Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    5,997
    Likes Received:
    27,589
    Trophy Points:
    12,605
    Không cần rewrite url đâu =D thử coi đc ko
     
    solovekui and NamLee like this.
  6. solovekui

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
  7. solovekui

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
  8. solovekui

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
  9. Đinh Quốc Hân

    Đinh Quốc Hân Đinh Quốc Hân Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    5,997
    Likes Received:
    27,589
    Trophy Points:
    12,605
    solovekui and NamLee like this.
  10. solovekui

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    68
    Likes Received:
    11
    Trophy Points:
    8
    Ok Thank anh em
     
Loading...

Share This Page

Loading...