"The noblest pleasure is the joy of understanding"   (Leonardo da Vinci)
Website banner

Tips for PHP

PHP takes a long time to exit

When using php as a CGI extension in Apache (e.g. calling php-cgi.exe via the Action application/x-httpd-php statement) PHP sometimes takes 5-6 seconds or more to exit. The content might show up immediately but the browser keeps loading the page.

The solution I found was to install PHP as a module for Apache instead. Simply re-run the PHP installation file and under Web Server Setup, select e.g. Apache 2.2.x

[[[ Copyright (C) Thor Asmund 1998-2008 ]]]