Need Help With Twitter Script

6 replies
Hey,

I have recently obtained this twitter script which I haven't used yet simply because I have to add a code to it.

The code I am looking for to add to this is one that allows me to control how often I want the tweet to post.

Here's the code:

<?

include "twitter.lib.php";


$twitter_user = '';
$twitter_pass = '';

$twitt = 'This is a test';

$twitter = new Twitter($twitter_user, $twitter_pass);

$twitter->updateStatus($twitt);

?>
Any help is appreciated.


Thanks
#script #twitter
  • Profile picture of the author phpbbxpert
    PHP does not work that way.

    It has to be loaded to run a command.

    The only way you could do that is through a Cron job.

    Also I am not sure where you got the script, but Twitter does not accept posts with
    $twitter_user = '';
    $twitter_pass = '';

    anymore.

    Oauth has to be used.
    Unless it is included in the lib somewhere.

    Have you run the script to see if it works?
    {{ DiscussionBoard.errors[2856449].message }}
  • Profile picture of the author rikkib51
    Hi,

    I just found it through google. I guess it must be pretty old.

    Unfortunately it doesn't work and my server does not use CRON.

    Any suggestions on what I could do? I have a better script but I have a server which does not support cron.
    Signature
    Simple Quoting, Client Management & Invoicing Tool In One

    www.inv.nz

    {{ DiscussionBoard.errors[2856499].message }}
  • Profile picture of the author mr.g-dh
    Why bother with this when you can find cracks of much advanced scripts online?
    {{ DiscussionBoard.errors[2856513].message }}
  • Profile picture of the author rikkib51
    What script would your reccommend?
    Signature
    Simple Quoting, Client Management & Invoicing Tool In One

    www.inv.nz

    {{ DiscussionBoard.errors[2859597].message }}
    • Profile picture of the author webdecoder
      I am expert in twitter API if you are still looking for someone I can do this job very quickly for you
      {{ DiscussionBoard.errors[2860858].message }}
    • Profile picture of the author mr.g-dh
      Originally Posted by rikkib51 View Post

      What script would your reccommend?
      You should hire a freelancer, this could be done in a day, price:30$
      {{ DiscussionBoard.errors[2872881].message }}

Trending Topics