Archive for January, 2012

 

URL Rewrite and ampersands with PHP

Trying to change a URL to have ampersands & is usually straight forward, you use %26.

However , throw in apahe mod_rewrite and PHP and things get a bit more complicated. Using the example – Books Forms & Pads – its URL encoded as:

books-forms-%26-pads

Apache will rewrite... Read More

Getting Subversion To Ignore a Single File

I was trying to get subversion to a single file , but kept having this error:

svn: Try ‘svn help’ for more info
svn: Explicit target required (‘config.php’ interpreted as prop value)

To get subversion to ignore a single file in a directory , so that... Read More

PHP strtotime

Just a note straight out of the php manual for the function: strtotime – int strtotime ( string $time [, int $now = time() ] )

Dates in the m/d/y or d-m-y formats are disambiguated by looking at the separator between the various components –  if... Read More