PHP: Multiple DNS Queries Using fopen
Whilst working on some inherited PHP code that used fopen I noticed an interesting comment in the PHP manual which pointed out that fopen always makes a DNS lookup for every request. Taking the following code as an example: <?php $handle = fopen("http://muffinresearch.co.uk/robots.txt", "r"…