• 06-10-2018, 01:25:34
    #1
    HB7
    Üyeliği durduruldu
    merhabalar bi bot hazılıyorum ama get ile veri yazarken sorun yaşıyorum.

    örnek link: site.com/haber/1000

    $url = "http://site.com/haber/".$sayi;

    benimsitem.com/bot.php?sayi=1000 bu şekilde yazdığımda onu get ile çekmek istiyorum ama olmadı yardmcı olacak var mı?
  • 06-10-2018, 01:30:01
    #2
    benimsitem.com/bot.php?sayi=1000 = $_GET['sayi'] şeklinde çeker site.com/haber/1000 e gelirsek .httacces den ayarlanmış ordaki ayara göre getle çekersin
  • 06-10-2018, 02:50:29
    #3
    htaccess ekle
    RewriteEngine on
    RewriteRule $haber/([0-9]+)^ bot.php?sayi=$1 [L,QSA]

    $_GET['sayi'] sunla da get cekebilirsin
  • 06-10-2018, 03:13:12
    #4
    Kısaca diyorlar ki benimsitem.com/bot.php?sayi=1000 ise aşağıdaki gibi yapabilirsin.
    $url = "http://site.com/haber/".$_GET['sayi'];