Last active
August 29, 2015 13:56
-
-
Save recyclerobot/9278766 to your computer and use it in GitHub Desktop.
execute phantom script and write to txt file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$o = exec('./phantomjs get_twitter_followers.js weworkweplay'); | |
$j = json_decode($o, true); | |
$fp = fopen('twitter_followers.txt', 'w'); | |
fwrite($fp, $j["weworkweplay"]); | |
fclose($fp); | |
echo $o; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment