Added console for php.
Added view count to detail.