1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Vui lòng đăng nhập để sử dụng Chat Box và nhiều tính năng hơn nữa
    Dismiss Notice

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:
    49
    Likes Received:
    8
    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. HenryDinh

    HenryDinh Đinh Quốc Hân Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    5,995
    Likes Received:
    27,588
    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:
    49
    Likes Received:
    8
    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,868
    Likes Received:
    1,353
    Trophy Points:
    113
     
    solovekui likes this.
  5. HenryDinh

    HenryDinh Đinh Quốc Hân Staff Member

    Joined:
    Dec 11, 2015
    Messages:
    5,995
    Likes Received:
    27,588
    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:
    49
    Likes Received:
    8
    Trophy Points:
    8
  7. solovekui

    solovekui Member

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

    solovekui Member

    Chủ Thớt
    Joined:
    Sep 3, 2016
    Messages:
    49
    Likes Received:
    8
    Trophy Points:
    8
  9. HenryDinh

    HenryDinh Đinh Quốc Hân Staff Member

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

    solovekui Member

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

Share This Page

Loading...