Posts

Showing posts from January, 2010

Apache mod_rewrite (.htaccess) - Rewrite or Redirect Request URLs if page not found, or no www

Apache mod_rewrite ( .htaccess ) - Request rewrites & redirects to site root if page or directory not found There are many scenarios where mod_rewrite can be used on a web server to improve usability, optimise for search engines, perform redirects based of specific criteria and much more. The following are some examples of how to configure .htaccess files on an Apache web server to alter requests and actions taken by the web server, including configuring the server to redirect to the site root (or other specified page) if a page or directory is not found, configuring the server to convert components of a http request into query string parameters to be passed to a specific page/script for processing and display (without altering the original address entered into the browser).

Php RSS2Writer (v2.1) - Generate RSS 2.0 Feed - Usage Instructions & Download

Image
RSS2Writer v2.1 has been updated to v3.0 beta.  The new version can be downloaded at the Php FeedWriter website:  http://phpfeedwriter.webmasterhub.net/ Php FeedWriter (v3.0 beta) now provides the ability to output to various feed formats.  Php FeedWriter can currently generate Atom 1.0, RSS 2.0, RSS 1.0, RSS 0.92 and RSS 0.91 compatible feeds .  View more information about Php FeedWriter , including online documentation .  For information about the latest update and release, see the article Php FeedWriter 3.0 (beta) Released . A tutorial demonstrating how to build a feed using Php FeedWriter is also available on this blog: How to Generate Feed Using Php (Atom 1.0 and RSS 2.0 Compatible) Generate RSS 2.0 Compatible feeds in Php, using the Free Php RSS2Writer Class. The Php RSS2Writer class has been updated. Recently implemented v2.1 updates allow CDATA to be incorporated if required. Version 2.0 included improved usability when using the RSS2Wri...

Php Date Time - 7 Methods to Calculate the Difference between 2 dates

Calculate the difference between two Dates (and time) using Php. The following page provides 7 methods for calculating the difference between two dates using Php, as well as some additional related resources to help with Date/Time calculations and manipulation using Php. Depending on the type of server running Php (Windows/IIS/Apache, Unix/Apache), standard date methods provided by Php can sometimes produce inconsitent or incorrect results. The various methods provided on the page below cater for different scenarios where date/time calculations need to be made using Php to calculate the difference between dates. See Php Date Time - 7 Methods to Calculate the Difference between 2 dates for details.