k00pa's tumblr

BlurB! Tubmblr! Check out my social media center at www.pelikoira.net/k00pa and my homepage www.pelikoira.net
Aug 04
Permalink

Twitter PHP script without cURL.

pratham:

This is a simple PHP script to interact with the Twitter API and update the user’s status. Unlike most other samples, it does not use cURL or any other dependency.

$msg = 'Your message here';

$out="POST http://twitter.com/statuses/update.json HTTP/1.1\r\n"
."Host: twitter.com\r\n"
."Authorization: Basic ".base64_encode ('username:password')."\r\n"
."Content-type: application/x-www-form-urlencoded\r\n"
."Content-length: ".strlen ("status=$msg")."\r\n"
."Connection: Close\r\n\r\n"
."status=$msg";

$fp = fsockopen ('twitter.com', 80);
fwrite ($fp, $out);
fclose ($fp);

Note that this script does not store or process the response.

Comments (View)
Aug 03
Permalink
Comments (View)
Aug 01
Permalink
Comments (View)
Permalink
Comments (View)
Jul 29
Permalink
Comments (View)
Permalink
Comments (View)
Jul 28
Permalink
Comments (View)
Jul 27
Permalink
Comments (View)
Permalink

KDE tasty menu

Normal kde menu is good, but it becomes easily a mess, where you can’t find anything. Always when I have new installion of kde3, first thing that I do is install tasty menu.

Tasty menu is much much cleaner and simplier, also it has good search functions.

KDE tasty menu

Comments (View)
Jul 24
Permalink

Siemens uptime

This trick works on most siemens mobile phones (?) maybe on other phones too.

write number *#05# and you get uptime and talk time.

Comments (View)