content top

WestHost on Rails 2007 (for cheapskates)

By Aaron Gustafson. Updated by Jason Gill While it is true that WestHost now offers Ruby on Rails, it’s only available on some of the packages and not all. If you are a cheapskate like me and want to add Ruby on Rails to the Personal Starter plan where RoR isn’t available, this tutorial is for you! This even works on packages that come with RoR for those of you who are unsatisfied with how limited WestHost’s install is....

Read More

MySQL 4.1.x and formatting the new TIMESTAMP with PHP

In MySQL 4.1 and up, the properties of the TIMESTAMP column type change from YYYYMMDDHHMMSS to YYYY-MM-DD HH:MM:SS. If you have built anything in PHP that relies on the old format, it will break if you upgrade from older versions of MySQL (such as this blog!). If you want the same view of a timestamp field in 4.1.x as it was in in earlier mysql versions, you can add a “+ 0″ to the column name. SELECT ts_col + 0 FROM...

Read More
content top