0
$url = "https://www.sportsdirect.com/york-monks-cross-store-1099";
$context = stream_context_create( [
        'ssl' => [
            'verify_peer' => false,
            'verify_peer_name' => false,
        ],
    ]);
        
$headers = get_headers($url, 0, $context);

This piece of code is overloading my Apache sever and my other websites that are hosted in the same server “does not work”, I mean other websites are loading forever until browser says ERR_CONNECTION_TIMED_OUT while the above PHP script is running.

Can anyone explain or suggest me an alternative.

Arzath Az
  • 1
  • 1
  • Maybe the above script throws errors, but the phrase ["does not work" is not helpful](http://idownvotedbecau.se/itsnotworking/). – shingo Jun 13 '22 at 05:06
  • Other websites hosted on same server loads for long time until browser time out when the above script is running. – Arzath Az Jun 13 '22 at 05:40
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Gary Houbre Jun 13 '22 at 09:11

0 Answers0