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. …
… a while ago I looked at using the filter_var() function to validate URL's using the FILTER_VALIDATE_URL flag and someone pointed out recently that this function has not … Require the scheme (eg, http://, ftp:// etc) within the URL. FILTER_FLAG_HOST_REQUIRED Require host of the URL (eg, …
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 …
… good idea and saves you time in the long run as you only have to edit one file to change an item on the menu. However, what if you only want to display a menu or sub-menu when a particular page is loaded? This is a common problem, … we are looking at has the following URL. http://www.hashbangcode.com/blog/example/test/123/test.php Then our array contained in the $parts …
… 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 …