Today’s date
<?php echo date('l jS F Y'); ?> Today’s date
<?php echo date('l jS F Y'); ?> Putting content into PHP variable – http://diggingintowordpress.com/2009/07/putting-the_content-into-a-php-variable/
Parsing RSS feeds in Simplepie – http://net.tutsplus.com/videos/screencasts/extending-simplepie-to-parse-unique-rss-feeds/
Building a photo site:
- http://net.tutsplus.com/videos/screencasts/scanning-folders-with-php/
- http://net.tutsplus.com/videos/screencasts/how-to-dynamically-create-thumbnails/
- http://net.tutsplus.com/videos/screencasts/create-a-photo-admin-site-using-php-and-jquery/
- http://net.tutsplus.com/videos/screencasts/building-the-back-end-of-a-photo-site/
Rotate product listings – http://blog.themeforest.net/tutorials/rotate-product-listings-with-php-and-jquery/
launching soon page – http://woork.blogspot.com/2009/06/how-to-implement-launching-soon-page-in.html
Simple way to work with Twitter – http://woork.blogspot.com/2009/06/super-simple-way-to-work-with-twitter.html
PHP twitter search – http://woork.blogspot.com/2009/06/simple-php-twitter-search-ready-to-use.html
<?php if (strpos("twitter.com",$_SERVER[HTTP_REFERER])==0) {
echo "Welcome, Twitter visitor! If you enjoy this post, don't hesitate to retweet!";
} ?> <?php
$usernames = "Username Username Username"; // Pull from accounts, separated by a space
$limit = "5"; // Number of tweets to pull in, total.
$show = 1; // Show username? 0 = No, 1 = Yes.
$prefix = ""; // This comes before the entire block of tweets.
$prefix_sub = ""; // This comes before each tweet on the feed.
$wedge = ""; // This comes after the username but before the tweet content.
$suffix_sub = "<br>"; // This comes after each tweet on the feed.
$suffix = ""; // This comes after the entire block of tweets.
function parse_feed($usernames, $limit, $show, $prefix_sub, $wedge, $suffix_sub) {
$usernames = str_replace(" ", "+OR+from%3A", $usernames);
$feed = "http://search.twitter.com/search.atom?q=from%3A" . $usernames . "&rpp=" . $limit;
$feed = file_get_contents($feed);
$feed = str_replace("&", "&", $feed);
$feed = str_replace("<", "<", $feed);
$feed = str_replace(">", ">", $feed);
$clean = explode("<entry>", $feed);
$amount = count($clean) - 1;
for ($i = 1; $i <= $amount; $i++) {
$entry_close = explode("</entry>", $clean[$i]);
$clean_content_1 = explode("<content type="html">", $entry_close[0]);
$clean_content = explode("</content>", $clean_content_1[1]);
$clean_name_2 = explode("<name>", $entry_close[0]);
$clean_name_1 = explode("(", $clean_name_2[1]);
$clean_name = explode(")</name>", $clean_name_1[1]);
$clean_uri_1 = explode("<uri>", $entry_close[0]);
$clean_uri = explode("</uri>", $clean_uri_1[1]);
echo $prefix_sub;
if ($show == 1) { echo "<a href="" . $clean_uri[0] . "">" . $clean_name[0] . "</a>" . $wedge; }
echo $clean_content[0];
echo $suffix_sub;
}
}
echo $prefix;
parse_feed($usernames, $limit, $show, $prefix_sub, $wedge, $suffix_sub);
echo $suffix;
?>