Search Results
… You can display your latest Wordpress posts anywhere on your site by using an RSS reader called SimplePie and a few lines of code. SimplePie is a fast and efficient RSS reader, and it will … as $item){ } You can also pull out categories from your Wordpress blog by setting the feed URL to something like this. …
… function to validate URL's using the FILTER_VALIDATE_URL flag and someone pointed out recently that this function has not only changed since … a number of flags can be added to change the way that this function works. Here are the flags available. FILTER_FLAG_SCHEME_REQUIRED Require … 'http://www.hashbangcode.com' => array(), 'http://www.hashbangcode.com/blog' => array(), 'http://www.example.com/index.html#anchor' => …
Article: PHP Paragraph Regular Expression
… I quite often find the need to extract a section of text from the beginning of a blog post or similar to be used as the excerpt. I normally use a function that …
… are some examples of their values (on the right) with the original URL (on the left). PHP_SELF test.php = test.php /example/ = … rest of the array. So if the file we are looking at has the following URL. http://www.hashbangcode.com/blog/example/test/123/test.php Then …
… One nice feature for any blog or site (especially news sites) is to have a little list of forthcoming …
Article: PHP Function To Get TinyURL
… TinyURL is a service where you can convert a long URL string to a really small one. For instance, the following URL, which points to the Googleplex on Google Maps. …
Article: Planet PHP
… Planet PHP is a feed aggregator blog specifically for PHP related blogs. There are a good number of blogs that the site uses to update …
… I talked a while ago about Adding Code To Wordpress Blogs And Comments , but I decided that it needed a bit of code to do this automatically. So here it is, prepared …