Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 668827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:05:02+00:00 2026-05-14T00:05:02+00:00

i am using a php script to automate posts to twitter. the script to

  • 0

i am using a php script to automate posts to twitter. the script to post is woking, but i want it to pull a list of users from my followers automatically. at the moment i am having to import CSV files into my mysql database. i know there is a way that i could pull followers and dump them into the DB directly using twitters API, but I lack the skill necessary to code said function.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:05:02+00:00Added an answer on May 14, 2026 at 12:05 am

    I would suggest that you request your followers from Twitter’s API in JSON format, then use PHP’s json_decode() function to get something usable from PHP from the results. It’s much easier than trying to use XML. You only have to make sure you have the JSON extension installed for PHP:

    <?php
    $username = 'johndoe';
    $ch = curl_init( 'http://api.twitter.com/1/statuses/followers/' . $username . '.json' );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    curl_setopt( $ch, CURLOPT_TIMEOUT, 60 ); // set curl timeout to 60 sec. you might want to increase this, as Twitter can be slow sometimes.
    $followers = json_decode( curl_exec( $ch ) );
    curl_close( $ch );
    
    // now just go through $followers and do with the data what you will
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jQuery to post a form to a php file, simple script to
I have a simple php script on a server that's using fsockopen to connect
I am using Delphi 7 and ICS components to communicate with php script and
I'm trying to post some very simple data to a php file using jquery
How can I sync local and remote folders using rsync from inside a php
Using PHP, exec('php test.php'); will execute a separate PHP script on the command line.
I'm using PHP and was wondering how can i run my PHP script to
I use a php script that hashes passwords using php's crypt and uses SHA512,
I'm trying for a while to execute a php script in my website using
I have two PHP scripts, both using the same session by calling session_name('MySessID') .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.