Results 1 to 3 of 3

Thread: how to create yahoo indicator

  1. #1
    Join Date
    Jun 2008
    Posts
    14
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default how to create yahoo indicator

    Hello All....
    I want to create a yahoo indicator with my own image not from yahoo default,..
    i havae try it but dont work.. can some one here give me script or repair my script below..

    if i create just with one ID it work, but when i use 2 ID like belloew the script just work th last ID.. the last ID only show at my website... anda the last how to create this script will show the result in center position..

    thanks..

    Code:
    <?
    
    /*status yahoo
    Mahmudy Sayang Syafira
    */
    
    if(ereg(basename (__FILE__), $_SERVER['PHP_SELF']))
    {
    header("HTTP/1.1 404 Not Found");
    exit;
    }
    
    ob_start();
    global $koneksi_db;
    
    $yahooid = "mudies_05";
    $yahooid1 = "mudy_dja04";
    
    $ch = curl_init("http://opi.yahoo.com/online?u=".$yahooid."&m=t");
    $ch1 = curl_init("http://opi.yahoo.com/online?u=".$yahooid1."&m=t");
    
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $status = curl_exec($ch,$ch1);
    
    curl_close($ch,$ch1);
    if($status == $yahooid.,$yahooid1." is NOT ONLINE"){
    
    //tampilkan gambar offline
    echo "<a href='ymsgr:sendIM?mudies_05'><img src='images/kingoff.png' border='0' alt='king Mahmudy' title='King Mahmudy' /></a>";
    
    echo "<a href='ymsgr:sendIM?mudy_dja04'><img src='images/queenoff.png' border='0' alt='Queen Syafira' title='Queen Syafira' /></a>";
    } elseif ($status == $yahooid.,$yahooid1." is ONLINE"){
    
    //tampilkan gambar online
    echo "<a href='ymsgr:sendIM?mudies_05'><img src='images/kingon.png' border='0' alt='king Mahmudy' title='King Mahmudy' /></a>";
    
    echo "<a href='ymsgr:sendIM?mudy_dja04'><img src='images/queenon.png' border='0' alt='Queen Syafira' title='Queen Syafira' /></a>";
    }
    
    $out = ob_get_contents();
    ob_end_clean();
    
    ?>

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You should look into using curl_multi_exec to execute the multiple calls.

    Look at the comments on php.net's website (which I linked to above).

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    asoekaya (07-11-2008)

  4. #3
    Join Date
    Jun 2008
    Posts
    14
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    thanks bro..
    but iam not good in scripting.. so can someone type and repair it for me...
    just post a script what you have edited...

    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •