Category Archives: Performance

Using exec to reduce PHP memory use

As mentioned in a previous post, I’ve recently started to use a library called dompdf to convert HTML to PDF using PHP. One of the major problems I came across was the amount of memory used by this library, which … Continue reading

Posted in PDF, Performance | Comments Off

Serving static files from a different domain

Whilst debugging a site last week, I noticed the following header was being sent to the server with each request (actual name/value removed): Cookie: cookiename=cookievalue When requesting the main PHP page this is a necessary header, because PHP uses it … Continue reading

Posted in Performance | Comments Off