Skip to main content


Update php cli version

I've recently updated my php and found, that the settings for apache did not match the php cli version. I had to set the cli version with the following procedure:

Harddisk speed

For some years I had problems when updating or installing a site with composer from my vagrant box.

Count PDF pages with php

function getNumPagesInPDF($PDFPath = NULL)
 $stream = fopen($PDFPath, "r");
 $PDFContent = fread ($stream, filesize($PDFPath));