Twitter bot tutorial

by Php Ninza on February 21, 2010

Twitter is heavily becoming a source of traffic and with there extremely powerful api , it’s very easy to automate stuff via Twitter bots.

Today i am going to show you a tutorial for very simple but yet very powerful bot which if used effectively can drive great traffic on sites. These bots simply search twitter stream for predefined keywords and tweet target messages to the tweeters. These bots can be set via cron to read stream every few minutes and make responses in real time.

For newbies and starters all Twitter API documentation can be found here , From here we are going to use Search API methods and Status Update REST api method for sending predefined tweets to the users.
[click to continue…]

Technorati Tags: , , ,

{ 6 comments }

Open Dada PHP Class – Ringtone Affiliate API

by Php Ninza on August 31, 2009

Recently i needed to make a ringtone download website for a friend and we researched on web for a good affiliate with a decent API to make things easier for content download and integration on website.

We ended choosing OpenDada.com which is a affiliate website for dada.net , Dada.net is a premier provider for providing ringtones and other mobile content.

The API documentation for OpenDada can be found at API docs page .

There are four methods that are defined in the class, Namely they are:-

search_ringtone(“ARTIST NAME”);

top10();

display_single_ringtone(“ARTIST NAME”, “SONG TITLE”);

get_genre(“GENRE”);

All methods are explained in the example.php file and can be found  here.

Todo List:-

1) Add functionality to get more than 10 ringtones.
2) Put the class in phpclasses.org
3) Add option of inserting partner id

Will update the class with more functionality sooner.

{ 5 comments }

5 important tips for Debugging PHP Code

by Php Ninza on August 29, 2009

Debugging PHP code is a  nightmare for all Php developers and these are the times when they miss the thread functionality like java in php, However some simple php debugging techniques can help y0u to code faster and thus save very valuable coding time.

These all debugging techniques are based on my experience and i would love to know what more techniques php programmers use for debugging there php code !, Please comment below and share with community if you know a secret weapon in php code debugging.

So , My 5 debugging tips are (in no particular order):-
[click to continue…]

{ 8 comments }

PHP5 allows developers to create public , private and protected methods and properties. They can be defined as :-

Protected:- The specified class and subclasses of that class can use the methods of that class

protected class Test
{
 $dead = false;

 function human()
 {
 }

 function set($dead)
 {
  $this->dead = "true";
 }

}

[click to continue…]

{ 1 comment }

BidVertiser