// archives

PHP

This tag is associated with 2 posts

PHP error handling via htaccess

Recently I had a staging website running on our production box. 1 of our external supplier wanted me to put php display-error on But die to this showing the very few (ah hum) errors on our production websites I had to find way to do this per domain. Turns out it’s very easy and can [...]

Select Yesterday from Unix Timestamp in MySql & PHP

$yesterday = date(‘Y-m-d’, mktime (0,0,0,date(‘m’),(date(‘d’)-1),date(‘Y’))); WHERE var BETWEEN UNIX_TIMESTAMP(‘$yesterday 00:00:00′) AND UNIX_TIMESTAMP(‘$yesterday 23:59:59′)

Most Emailed