How to include a class

Decoy

New Member
I have \[code\]index.php\[/code\] and I want to include \[code\]class.twitter.php\[/code\] inside it, how do I do this?Hopefully then when I put the below code in index.php it will work.\[code\]$t = new twitter();$t->username = 'user';$t->password = 'password';$data = http://stackoverflow.com/questions/1994666/$t->publicTimeline();\[/code\]
 
Back
Top