コード例 #1
0
    public function getPage() 
    {
        if( 'www.' != substr($this->domain, 0, 4) ) {
            $this->domain = 'www.' . $this->domain;
        }

        return $this->answer = parent::getPage('http://search.dmoz.org/cgi-bin/search?search=' . $this->domain);
    }
コード例 #2
0
    public function getPage() 
    {
        if( 'www.' != substr($this->domain, 0, 4) ) { 
            $this->domain = 'www.' . $this->domain;
        }

        return $this->answer = parent::getPage('http://yaca.yandex.ru/yca?text=' . $this->domain . '&yaca=1');
    }
コード例 #3
0
    public function getPage() 
    {
        if( 'www.' == substr($this->domain, 0, 4) ) {
            $this->domain = substr($this->domain, 4);
        }

        return $this->answer = parent::getPage(
                                    'http://news.google.ru/news/search?pz=1&cf=all&ned=ru_ru&hl=ru&q=site:' . 
                                    $this->domain
                                );
    }
コード例 #4
0
    public function getPage()
    {
        if( 'www.' == substr($this->domain, 0, 4) ) {
            $this->domain = substr($this->domain, 4);
        }

        return $this->answer = parent::getPage(
                                        'http://news.yandex.ru/yandsearch?text=' . 
                                        $this->domain . 
                                        '&rptval=on&rpt=smisearch&grhow=clutop'
                                );
    }