Archive for January, 2009

Found Code: Replacing Runs of Commas

Tuesday, January 27th, 2009

I found this gem today. $special = str_replace(",,,,",",",$special); $special = str_replace(",,,",",",$special); $special = str_replace(",,",",",$special); Pretty sweet.

Using mod_rewrite with VirtualDocumentRoot

Wednesday, January 21st, 2009

In our dev environment, we use VirtualDocumentRoot to avoid configuring new environments when we get a new developer. It's awesome. However, if you try to use mod_rewrite, you'll find that your rewrite rules will prepend whatever you have defined as the document root in the config file. To get ...