Skip to main content

php

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));