Re: [PHP] need help with code

2009-03-22 Thread VamVan
Code without proper indentation and is very hard to comprehend. You have unnecessary spacing and line breaks that makes it difficult to debug. I suggest you few things as a good practice: 1) Until you learn perfectly to code use some nice GUI editors that have syntax highlighting (aptana, eclipse

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
>> hi Chris, >> >> basing on the code you posted, you're missing the closing brace for >> if ($accessToken===NULL) >> { >> >> there should be 3 closing braces before the last ?> > >    That'll be the next error, but that error would print "unexpected > $end on line xxx." well, if you're getting th

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:54, Virgilio Quilario wrote: > > hi Chris, > > basing on the code you posted, you're missing the closing brace for > if ($accessToken===NULL) > { > > there should be 3 closing braces before the last ?> That'll be the next error, but that error would print "unexpecte

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
> I hate asking for help with simple code like this because I can usually > figure it out, but I'm stumped on this one.  I'm getting a parser error on > line 13, whether I comment out the require_once line or not.   Can you help? > > require_once('twitterlib.php'); > > $consumerKey="yVVRd1QCJYBt

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:42, Chris Westbrook wrote: > I hate asking for help with simple code like this because I can usually > figure it out, but I'm stumped on this one.  I'm getting a parser error on > line 13, whether I comment out the require_once line or not.   Can you help? Probabl

[PHP] need help with code

2009-03-21 Thread Chris Westbrook
I hate asking for help with simple code like this because I can usually figure it out, but I'm stumped on this one. I'm getting a parser error on line 13, whether I comment out the require_once line or not. Can you help? getRequestToken(); $reqToken = $tok['oauth_token']; $reqToke