A simple web crawler in PHP with and without curl