sheetal
Filed under - PHP, Social Media
No Comments so far. Add yours now
Selec All Code:
1
2
3
Reference site of solution : https://dev.twitter.com/discussions/686
Follow This steps,
1.. Create a php file in your server:
Selec All Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$request_url ="https://api.twitter.com/1/help/test.json";
$srvstamp = time();     // ---- server timestamp ---- 
$twheader = get_headers($request_url, 1);   // ---- array with ['Date'] string
$twistamp = strtotime($twheader['date']);   // ---- twitter timestamp
echo "
 Server: ".date("Y.m.d (H:i:s)",$srvstamp)." - ".$srvstamp." \r\n";
echo "
 Twitter: ".date("Y.m.d (H:i:s)",$twistamp)." - ".$twistamp." \r\n";
/The diference between my server and twitter is/
echo $twistamp - $srvstamp;
?>
2.- Open your browser ang go to your php file
I copied the diference between the timestamps
4.- Go to Ajust ->Wordtwit and saste that number in the last textfiled (timestamp)
5.- Save and that's all

Tags: ,

Leave your comment

You must be logged in to post a comment.

Share IT © 2017. All rights reserved.