if (!empty($_POST['twitnam'])) { $message = $_POST['message']; $TwitterUsername = $_POST['twitnam']; $tw_sql = mysqli_query($connection, "SELECT oauth_token,oauth_token_secret FROM TwitterUpdate WHERE uname='$TwitterUsername'"); $row = mysqli_fetch_array($tw_sql, MYSQLI_ASSOC); $oauth_token = $row["oauth_token"]; $oauth_token_secret = $row["oauth_token_secret"]; if (strlen($oauth_token) > 0 && strlen($oauth_token_secret) > 0) { $Twitter = new EpiTwitter($consumer_key, $consumer_secret); $Twitter->setToken($oauth_token, $oauth_token_secret); $status = $Twitter->post_statusesUpdate(array('status' => $message)); echo $status->id_str; } } every time i try to run the script i got: Fatal error: Uncaught exception 'EpiTwitterNotAuthorizedException' with message '{"errors":[{"message":"Could not authenticate you","code":32}]}' in /****/EpiTwitter/EpiTwitter.php:254 Stack trace: #0 /*****/EpiTwitter/EpiTwitter.php(217): EpiTwitterException::raise(Object(EpiCurlManager), false) #1 /*****/EpiTwitter/EpiTwitter.php(118): EpiTwitterJson->__get('response') #2 /******/EpiTwitter/EpiTwitter.php(100): EpiTwitter->request('POST', '/statuses/updat...', Array) #3 /*****/fbmain.php(98): EpiTwitter->__call('post_statusesUp...', Array) #4 /*****/fbmain.php(98): EpiTwitter->post_statusesUpdate(Array) #5 /****/index.php(17): in …

Member Avatar
Member Avatar
+0 forum 2

I just got this script for a countdown on a website and I got it to work locally but when I upload it to the server i get the error "index.html:22 Uncaught TypeError: Object [object Object] has no method 'fancycountdown'". I have checked to make sure all other javascript files are loading and they are and I can't figure out whats wrong. You can see it here: [url]http://con.fwusy.net/countdown/index.html[/url] Anybody know what to do? Thanks

Member Avatar
Member Avatar
+0 forum 2

I am trying to learn a little about ajax and prototype.js. Here's what I have so far: [B]boardtest.php[/B] [CODE] <html> <head> <title>AJAX Test with new javascript</title> <script src="scripts/prototype.js" type="text/javascript"></script> <script src="scripts/ajax.js" type="text/javascript"></script> </head> <body> <div id="products">(...locaing inventory...)</div> </body> </html> [/CODE] [B]ajax.php[/B] [CODE] <?php $company = $_GET['company']; $limit = $_GET['limit']; $line = "The company, ".$company.", has ".$limit." employees."; echo $line; ?> [/CODE] [B]ajax.js[/B] [CODE] new Ajax.Updater('products', '/ajax.php', { method: 'get', parameters: {company: 'example', limit: 12} }); [/CODE] and, of course, prototype.js, which is the standard .js file. I know I am doing, or not doing, something that will be completely obvious …

Member Avatar
Member Avatar
+0 forum 7

The End.