How to Scrape Meta Tags From Any Web Page With PHP

A couple of weeks ago I was going to work on a new project, it was a directory-like kind of app. One the things this application had to do was let users add their websites to their profiles, and so the first question came up, “how am going to get their website’s title and meta …

Using ‘date’ meta-tags for dynamic content

Why add a date to your content? Everyone wants to see the most current content. Why should you want to date it if the server will automatically tell the browser that it’s all ‘brand new’ when serving an active page (i.e. PHP, ASP, JSP, etc.)?! By putting a date on your content you’re admitting that …

MySQL group by day, month or year using a timestamp column

  In Ruby on Rails, created_at and updated_at columns are MySQL timestamp columns.  GROUP BY is pretty useless on a timestamp column, unless you are trying to group rows that were added at the same second.  I needed to group by just the date, so in order to do this I had to manipulate the …