PHP: Multiple DNS Queries Using fopen
Whilst working on some inherited PHP code that used fopen I noticed an interesting comment [http://uk3.php.net/manual/en/function.fopen.php#73132] in the PHP manual which pointed out that fopen always makes a DNS lookup for every request. Taking the following code as an example: <…