• 28-08-2016, 19:54:16
    #1
    php ile siteye otomatik olarak günlük burç çeken bir modül kullanıyorum önceden kullanılan site kapandığı için çekmiyor ben de yeni bir site bulup değiştirmek istiyorum. Kod aşağıdaki gibi

    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"><?
    $burc = htmlspecialchars($_GET['burc']);
    
    $baglan = file_get_contents("http://astroloji.mahmure.com/burclar/".$burc);
    preg_match('@<div class="burcDetail mBot30px">(.*?)</div>@si',$baglan, $burc);
    
    echo str_replace('..','http://astroloji.mahmure.com',$burc[1]);
    ?>
    çalıştırıldığında aşağıdaki hatayı veriyor. Sonuna .asp yazıyor bunu nasıl değiştirebilirim? Tüm fonksiyon dosyalarına baktım ama bulamadım bir türlü.

  • 29-08-2016, 04:54:09
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    $burc = htmlspecialchars($_GET['burc']);
    ile elde ettiğinizde $burc değişkenin içeriği koc.asp değil de sadece koc olmalı.
  • 29-08-2016, 13:03:18
    #3
    PROOYUN adlı üyeden alıntı: mesajı görüntüle
    $burc = htmlspecialchars($_GET['burc']);
    ile elde ettiğinizde $burc değişkenin içeriği koc.asp değil de sadece koc olmalı.
    evet hocam da onu nasıl ayarlayacağım
  • 29-08-2016, 13:17:42
    #4
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"><? 
    $burc = htmlspecialchars($_GET['burc']); 
    $burc = substr_replace($burc, '', -4);
    $baglan = file_get_contents("http://astroloji.mahmure.com/burclar/".$burc); 
    preg_match('@<div class="burcDetail mBot30px">(.*?)</div>@si',$baglan, $burc); 
    
    echo str_replace('..','http://astroloji.mahmure.com',$burc[1]); 
    ?>
    böyle deneyin.
  • 29-08-2016, 13:22:28
    #5
    F.Gungor adlı üyeden alıntı: mesajı görüntüle
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"><? 
    $burc = htmlspecialchars($_GET['burc']); 
    $burc = substr_replace($burc, '', -4);
    $baglan = file_get_contents("http://astroloji.mahmure.com/burclar/".$burc); 
    preg_match('@<div class="burcDetail mBot30px">(.*?)</div>@si',$baglan, $burc); 
    
    echo str_replace('..','http://astroloji.mahmure.com',$burc[1]); 
    ?>
    böyle deneyin.
    teşekkürler hocam oldu bu şekilde