This file contains hidden or 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
{ | |
"actor": { | |
"displayName": "The 6", | |
"favoritesCount": 1224, | |
"followersCount": 623, | |
"friendsCount": 570, | |
"id": "id:twitter.com:1335256172", | |
"image": "https://pbs.twimg.com/profile_images/692291771234140161/8N_MZvwt_normal.jpg", | |
"languages": [ | |
"en" |
This file contains hidden or 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 | |
$twitter_user = "shamess"; | |
$json = file_get_contents ("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=".$twitter_user."&count=3&trim_user=true"); | |
$tweets = json_decode ($json); | |
echo "<ul>"; | |
foreach ($tweets as $tweet) { | |
$tweet_text = $tweet->text; |
This file contains hidden or 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 | |
session_start (); | |
if ($_POST['some_text']) { | |
$_SESSION['some_text'] = $_POST['some_text']; | |
header ('HTTP/1.1 303 See Other'); | |
header ('Location: ./'); | |
} else { |