[twitter-dev] Re: Problem with my curl remote app

2010-09-23 Thread Daniel Contarini
is it supposed to work on PHP 5.3.3 ? Or just on php 5.2.x ?

On 22 set, 17:02, Tom van der Woerdt i...@tvdw.eu wrote:
 You'd have to remove all the PHP5 specific code. Really, you should
 upgrade :-)

 Tom

 On 9/22/10 9:58 PM, Daniel Contarini wrote:

  Damn, i'm running this php -  4.4.7. There is a way to post into
  twtiter with php 4 or i need to upgrade to php 5+ ?

  On 22 set, 15:48, Abraham Williams 4bra...@gmail.com wrote:
  You would not happen to be running PHP4 would you?

  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Wed, Sep 22, 2010 at 11:38, Daniel Contarini
  danielcontar...@gmail.comwrote:

  Line 21

  On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote:
  What line is that error occurring on?

  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
  danielcontar...@gmail.comwrote:

  I think this is what i need, but i'm getting trouble with this error :

  Parse error: syntax error, unexpected T_STRING, expecting
  T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

  On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
  This should be all you need:http://gist.github.com/592098

  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
  danielcontar...@gmail.comwrote:

  I'm not living under a rock, but almost it :/

  Can you help me answer what i need to change , because i'm reading
  everything about oauth and i'm still lost :/

  On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
 http://dev.twitter.com, big blue bar at the bottom of the screen?

  http://dev.twitter.com/announcements

  Tom

  PS: Have you been living under a rock? Every major tech blog
  announced
  it... (And sorry if I am rude)

  On 9/22/10 4:52 PM, Daniel Contarini wrote:

  This  code have been working perfectly until the last 20 days
  +-, i
  wanna know what i need to change in this code to make it works
  again.

  $userpass=My user and pass; //sure to be correct

   $host = http://twitter.com/statuses/update.xml?
  status=.urlencode(htmlentities($message));

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $host);
   curl_setopt($ch, CURLOPT_VERBOSE, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
   curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, );

   $result = curl_exec($ch);

   $resultArray = curl_getinfo($ch);

   curl_close($ch);

  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-23 Thread Tom van der Woerdt
Works with 5.3.3 on my server.

Tom


On 9/23/10 3:02 PM, Daniel Contarini wrote:
 is it supposed to work on PHP 5.3.3 ? Or just on php 5.2.x ?
 
 On 22 set, 17:02, Tom van der Woerdt i...@tvdw.eu wrote:
 You'd have to remove all the PHP5 specific code. Really, you should
 upgrade :-)

 Tom

 On 9/22/10 9:58 PM, Daniel Contarini wrote:

 Damn, i'm running this php -  4.4.7. There is a way to post into
 twtiter with php 4 or i need to upgrade to php 5+ ?

 On 22 set, 15:48, Abraham Williams 4bra...@gmail.com wrote:
 You would not happen to be running PHP4 would you?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 11:38, Daniel Contarini
 danielcontar...@gmail.comwrote:

 Line 21

 On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote:
 What line is that error occurring on?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
 danielcontar...@gmail.comwrote:

 I think this is what i need, but i'm getting trouble with this error :

 Parse error: syntax error, unexpected T_STRING, expecting
 T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

 On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
 This should be all you need:http://gist.github.com/592098

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
 danielcontar...@gmail.comwrote:

 I'm not living under a rock, but almost it :/

 Can you help me answer what i need to change , because i'm reading
 everything about oauth and i'm still lost :/

 On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
 http://dev.twitter.com, big blue bar at the bottom of the screen?

 http://dev.twitter.com/announcements

 Tom

 PS: Have you been living under a rock? Every major tech blog
 announced
 it... (And sorry if I am rude)

 On 9/22/10 4:52 PM, Daniel Contarini wrote:

 This  code have been working perfectly until the last 20 days
 +-, i
 wanna know what i need to change in this code to make it works
 again.

 $userpass=My user and pass; //sure to be correct

  $host = http://twitter.com/statuses/update.xml?
 status=.urlencode(htmlentities($message));

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $host);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
  curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, );

  $result = curl_exec($ch);

  $resultArray = curl_getinfo($ch);

  curl_close($ch);

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources:http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-23 Thread Matt Harris
Hi Mike,

The OAuth 1 tokens are permanent and expire only if the user revokes
the application, or if your application is deleted.

The user token and secret are returned by the method
https://api.twitter.com/oauth/access_token, called after the user has
authorised your application and we have redirected them back to the
callback URL you specified in the request_token call.

Once you have a users token and secret you don't need to have them
complete the OAuth flow again.

Hope that helps,
@themattharris



On Thu, Sep 23, 2010 at 10:59 AM, Mike the Pike mikeb...@yahoo.com wrote:
 Just wondering how the tokens are supplied to your script. I have a
 consumer key and a secret consumer key but as I undersatnd the tokens
 are only temporary. How do I get these?

 On Sep 22, 1:18 pm, Abraham Williams 4bra...@gmail.com wrote:
 This should be all you need:http://gist.github.com/592098

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
 danielcontar...@gmail.comwrote:



  I'm not living under a rock, but almost it :/

  Can you help me answer what i need to change , because i'm reading
  everything about oauth and i'm still lost :/

  On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
  http://dev.twitter.com, big blue bar at the bottom of the screen?

   http://dev.twitter.com/announcements

   Tom

   PS: Have you been living under a rock? Every major tech blog announced
   it... (And sorry if I am rude)

   On 9/22/10 4:52 PM, Daniel Contarini wrote:

This  code have been working perfectly until the last 20 days +-, i
wanna know what i need to change in this code to make it works again.

$userpass=My user and pass; //sure to be correct

 $host = http://twitter.com/statuses/update.xml?
status=.urlencode(htmlentities($message));

 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $host);
 curl_setopt($ch, CURLOPT_VERBOSE, 1);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 curl_setopt($ch, CURLOPT_POST, 1);
 curl_setopt($ch, CURLOPT_POSTFIELDS, );

 $result = curl_exec($ch);

 $resultArray = curl_getinfo($ch);

 curl_close($ch);

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en- Hide quoted 
 text -

 - Show quoted text -

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Daniel Contarini
I'm not living under a rock, but almost it :/

Can you help me answer what i need to change , because i'm reading
everything about oauth and i'm still lost :/

On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
 http://dev.twitter.com, big blue bar at the bottom of the screen?

 http://dev.twitter.com/announcements

 Tom

 PS: Have you been living under a rock? Every major tech blog announced
 it... (And sorry if I am rude)

 On 9/22/10 4:52 PM, Daniel Contarini wrote:

  This  code have been working perfectly until the last 20 days +-, i
  wanna know what i need to change in this code to make it works again.

  $userpass=My user and pass; //sure to be correct

   $host = http://twitter.com/statuses/update.xml?
  status=.urlencode(htmlentities($message));

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $host);
   curl_setopt($ch, CURLOPT_VERBOSE, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
   curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, );

   $result = curl_exec($ch);

   $resultArray = curl_getinfo($ch);

   curl_close($ch);

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Abraham Williams
This should be all you need: http://gist.github.com/592098

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
danielcontar...@gmail.comwrote:

 I'm not living under a rock, but almost it :/

 Can you help me answer what i need to change , because i'm reading
 everything about oauth and i'm still lost :/

 On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
  http://dev.twitter.com, big blue bar at the bottom of the screen?
 
  http://dev.twitter.com/announcements
 
  Tom
 
  PS: Have you been living under a rock? Every major tech blog announced
  it... (And sorry if I am rude)
 
  On 9/22/10 4:52 PM, Daniel Contarini wrote:
 
   This  code have been working perfectly until the last 20 days +-, i
   wanna know what i need to change in this code to make it works again.
 
   $userpass=My user and pass; //sure to be correct
 
$host = http://twitter.com/statuses/update.xml?
   status=.urlencode(htmlentities($message));
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, );
 
$result = curl_exec($ch);
 
$resultArray = curl_getinfo($ch);
 
curl_close($ch);

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Daniel Contarini
I think this is what i need, but i'm getting trouble with this error :

Parse error: syntax error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
 This should be all you need:http://gist.github.com/592098

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
 danielcontar...@gmail.comwrote:

  I'm not living under a rock, but almost it :/

  Can you help me answer what i need to change , because i'm reading
  everything about oauth and i'm still lost :/

  On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
  http://dev.twitter.com, big blue bar at the bottom of the screen?

   http://dev.twitter.com/announcements

   Tom

   PS: Have you been living under a rock? Every major tech blog announced
   it... (And sorry if I am rude)

   On 9/22/10 4:52 PM, Daniel Contarini wrote:

This  code have been working perfectly until the last 20 days +-, i
wanna know what i need to change in this code to make it works again.

$userpass=My user and pass; //sure to be correct

 $host = http://twitter.com/statuses/update.xml?
status=.urlencode(htmlentities($message));

 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $host);
 curl_setopt($ch, CURLOPT_VERBOSE, 1);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 curl_setopt($ch, CURLOPT_POST, 1);
 curl_setopt($ch, CURLOPT_POSTFIELDS, );

 $result = curl_exec($ch);

 $resultArray = curl_getinfo($ch);

 curl_close($ch);

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Abraham Williams
What line is that error occurring on?

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
danielcontar...@gmail.comwrote:

 I think this is what i need, but i'm getting trouble with this error :

 Parse error: syntax error, unexpected T_STRING, expecting
 T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

 On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
  This should be all you need:http://gist.github.com/592098
 
  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
  On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
  danielcontar...@gmail.comwrote:
 
   I'm not living under a rock, but almost it :/
 
   Can you help me answer what i need to change , because i'm reading
   everything about oauth and i'm still lost :/
 
   On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
   http://dev.twitter.com, big blue bar at the bottom of the screen?
 
http://dev.twitter.com/announcements
 
Tom
 
PS: Have you been living under a rock? Every major tech blog
 announced
it... (And sorry if I am rude)
 
On 9/22/10 4:52 PM, Daniel Contarini wrote:
 
 This  code have been working perfectly until the last 20 days +-, i
 wanna know what i need to change in this code to make it works
 again.
 
 $userpass=My user and pass; //sure to be correct
 
  $host = http://twitter.com/statuses/update.xml?
 status=.urlencode(htmlentities($message));
 
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $host);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
  curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, );
 
  $result = curl_exec($ch);
 
  $resultArray = curl_getinfo($ch);
 
  curl_close($ch);
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Daniel Contarini
Line 21

On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote:
 What line is that error occurring on?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
 danielcontar...@gmail.comwrote:

  I think this is what i need, but i'm getting trouble with this error :

  Parse error: syntax error, unexpected T_STRING, expecting
  T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

  On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
   This should be all you need:http://gist.github.com/592098

   Abraham
   -
   Abraham Williams | Hacker Advocate |http://abrah.am
   @abraham |http://projects.abrah.am|http://blog.abrah.am
   This email is: [ ] shareable [x] ask first [ ] private.

   On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
   danielcontar...@gmail.comwrote:

I'm not living under a rock, but almost it :/

Can you help me answer what i need to change , because i'm reading
everything about oauth and i'm still lost :/

On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
http://dev.twitter.com, big blue bar at the bottom of the screen?

 http://dev.twitter.com/announcements

 Tom

 PS: Have you been living under a rock? Every major tech blog
  announced
 it... (And sorry if I am rude)

 On 9/22/10 4:52 PM, Daniel Contarini wrote:

  This  code have been working perfectly until the last 20 days +-, i
  wanna know what i need to change in this code to make it works
  again.

  $userpass=My user and pass; //sure to be correct

   $host = http://twitter.com/statuses/update.xml?
  status=.urlencode(htmlentities($message));

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $host);
   curl_setopt($ch, CURLOPT_VERBOSE, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
   curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, );

   $result = curl_exec($ch);

   $resultArray = curl_getinfo($ch);

   curl_close($ch);

--
Twitter developer documentation and resources:
 http://dev.twitter.com/doc
API updates via Twitter:http://twitter.com/twitterapi
Issues/Enhancements Tracker:
   http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
   http://groups.google.com/group/twitter-development-talk?hl=en

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Abraham Williams
You would not happen to be running PHP4 would you?

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Wed, Sep 22, 2010 at 11:38, Daniel Contarini
danielcontar...@gmail.comwrote:

 Line 21

 On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote:
  What line is that error occurring on?
 
  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
  On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
  danielcontar...@gmail.comwrote:
 
   I think this is what i need, but i'm getting trouble with this error :
 
   Parse error: syntax error, unexpected T_STRING, expecting
   T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php
 
   On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
This should be all you need:http://gist.github.com/592098
 
Abraham
-
Abraham Williams | Hacker Advocate |http://abrah.am
@abraham |http://projects.abrah.am|http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.
 
On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
danielcontar...@gmail.comwrote:
 
 I'm not living under a rock, but almost it :/
 
 Can you help me answer what i need to change , because i'm reading
 everything about oauth and i'm still lost :/
 
 On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
 http://dev.twitter.com, big blue bar at the bottom of the screen?
 
  http://dev.twitter.com/announcements
 
  Tom
 
  PS: Have you been living under a rock? Every major tech blog
   announced
  it... (And sorry if I am rude)
 
  On 9/22/10 4:52 PM, Daniel Contarini wrote:
 
   This  code have been working perfectly until the last 20 days
 +-, i
   wanna know what i need to change in this code to make it works
   again.
 
   $userpass=My user and pass; //sure to be correct
 
$host = http://twitter.com/statuses/update.xml?
   status=.urlencode(htmlentities($message));
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, );
 
$result = curl_exec($ch);
 
$resultArray = curl_getinfo($ch);
 
curl_close($ch);
 
 --
 Twitter developer documentation and resources:
  http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Problem with my curl remote app

2010-09-22 Thread Tom van der Woerdt
You'd have to remove all the PHP5 specific code. Really, you should
upgrade :-)

Tom


On 9/22/10 9:58 PM, Daniel Contarini wrote:
 Damn, i'm running this php -  4.4.7. There is a way to post into
 twtiter with php 4 or i need to upgrade to php 5+ ?
 
 On 22 set, 15:48, Abraham Williams 4bra...@gmail.com wrote:
 You would not happen to be running PHP4 would you?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 11:38, Daniel Contarini
 danielcontar...@gmail.comwrote:

 Line 21

 On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote:
 What line is that error occurring on?

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:54, Daniel Contarini
 danielcontar...@gmail.comwrote:

 I think this is what i need, but i'm getting trouble with this error :

 Parse error: syntax error, unexpected T_STRING, expecting
 T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php

 On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote:
 This should be all you need:http://gist.github.com/592098

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 22, 2010 at 10:10, Daniel Contarini
 danielcontar...@gmail.comwrote:

 I'm not living under a rock, but almost it :/

 Can you help me answer what i need to change , because i'm reading
 everything about oauth and i'm still lost :/

 On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote:
 http://dev.twitter.com, big blue bar at the bottom of the screen?

 http://dev.twitter.com/announcements

 Tom

 PS: Have you been living under a rock? Every major tech blog
 announced
 it... (And sorry if I am rude)

 On 9/22/10 4:52 PM, Daniel Contarini wrote:

 This  code have been working perfectly until the last 20 days
 +-, i
 wanna know what i need to change in this code to make it works
 again.

 $userpass=My user and pass; //sure to be correct

  $host = http://twitter.com/statuses/update.xml?
 status=.urlencode(htmlentities($message));

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $host);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_USERPWD, $user$pass);
  curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, );

  $result = curl_exec($ch);

  $resultArray = curl_getinfo($ch);

  curl_close($ch);

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources:http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en