Twitter Posting with PHP and Curl

As it’s so utterly and incredibly easy to do this, I thought I’d add to the resources of how to post to message to your Twitter account using PHP and Curl.

So, to add to the other PHP scripts I’ve been plonking out here, here is the PHP source code to a simple  function which will post to a Twitter account. Send data to it from a form or a service, or even another script, even from an llHTTPRequest from an LSL script in Second Life! Easy and interesting stuff, that messaging. 😉

Here you go:


  • Nice… I was about to write something like this myself. It saves me some time looking up how to interface curl from PHP.


  • That the idea! 🙂 Happy to have helped.

  • We offer Bullet Proof dedicated servers & Antiabuse hosting for direct mailing, all types of adults, logs, fakes and other projects.

    We have:
    · 100 Mbit channel
    · Guaranteed uninterrupted power supply
    · Support service
    · Anonymity
    · Remote access to power supply (APC PDU)

    Standard server configuration: Pentium 4 3.0G/DDR2 1024Mb/HDD 80Gb Sata2

    Also, any configuration can be ordered.

    After the server will be ordered setup is done within 24 hours.

    All types of spam is allowed.

    You can pay us by:
    – webmoney
    – E-gold

    If you have any questions, please contact us:
    icq: 567-540 (Dice)

    Thank you for your time and attention!
    Best regards, Dreamhoster.

  • Thanks for posting this. Lots of potential uses.

  • What about the possibility of pulling out of Iraq, letting Iran invade and lose resources fighting their own kind,
    and then come in and mop up the dregs?

  • Thank you for this! 🙂

    And also (!), it’s so good(?!!) to see I can stop freaking out and/or attempting to grok this spamming nemoforone guy’s (yes, he is a guy. i have a short portfolio of ‘his existence’ in my mind, thanks to my … paranoia re: ‘crap that may or may not be spam’.

    phewf. My apologies for all of that 😉

    ~Rae (still patiently looking forward to the hubby recompiling(+ ?) for cURL, erm, COMPLIANCE heheh)