my code

Google Tarzı Bunu Mu Demek İstediniz önerisi olu

Snippet options

Download: Download snippet as google-tarzi.php.
Copy snippet: For this you need a free my code account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

    header("Content-Type: text/html; charset=ISO-8859-9");
    a { text-decoration:underline; }
    a:visited {color:darkblue; }
    <form action="index.php" method="get"></form>
    <input type="text" name="bul" value="<?php
    echo (isset($_GET['bul'])) ? $_GET['bul'] : '';
    ?>" /><input type="submit" value="Bul"></form>
    if ($_GET['bul']) {
        $bul   = $_GET['bul'];
        $query = array(
            'hl' => 'tr',
            'sourceid' => 'chrome',
            'ie' => 'UTF-8',
            'q' => $bul
        $sorgu = '' . $query['hl'] . '/search?' . http_build_query($query);
        $ali = file_get_contents($sorgu);
        $ali = mb_convert_encoding($ali, 'UTF-8', 'ISO-8859-9');
        $ali = explode('Bunu mu demek istediniz?', $ali);
        if (!$ali[1]) {
            echo '<font color="darkblue" weight="bold" ></font>Gayet Düzgün</font>';
        } else {
            $ali = explode('En iyi', $ali[1]);
            if (!$ali[0]) {
                $ali = explode('Arama', $ali[1]);
            echo '<font color="darkred" weight="bold" ></font>Bunu mu Demek İstediniz?  </font><font color="darkblue" weight="bold" ></font><a href="index.php?bul=' . str_replace(' ', '', strip_tags(trim($ali[0]))) . '" >' . str_replace(' ', '', strip_tags(trim($ali[0])));

Create a free my code account now.

my code is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.