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.
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…]
by Php Ninza on August 23, 2009
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…]