Jump to content

Skype and paypal


perosf

Recommended Posts

Hello.

I hope that will help me with this code.

<?php

function getSkypeStatus($username) {

    $remote_status = fopen ('http://mystatus.skype.com/'.$username.'.num', 'r');

    if (!$remote_status) {

        return '0';

        exit;

    }

    while (!feof ($remote_status)) {

        $value = fgets ($remote_status, 1024);

        return trim($value);

    }

    fclose($remote_status);

}

function getSkypeStatusIcon($username) {

    $status = getSkypeStatus($username);

    if($status == 0 || $status == 1 || $status == 6) {

        echo '<img src="skype-icons/'.$status.'.png" alt="call '.$username.'" />';

    } else {

    echo '<a href="skype:'.$username.'?call"><img src="skype-icons/'.$status.'.png" alt="call '.$username.'" /></a>';

    }

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Skype web status </title>

</head>

 

<body>

Skype Status:

<?php getSkypeStatusIcon('skecot'); ?>

</body>

</html>

So I want this code to add a paypal s before my ring to pay and then to allow me to ring. Is it possible something like that.

I hope there will be someone to help me.

Thank you

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.