Answer the question
In order to leave comments, you need to log in
What is the fastest way to generate a page hit in php?
Good afternoon. There is a task - to quickly generate hits on a large volume of pages. Implementation language - php. View code:
foreach ($pages as $page){
$ch = curl_init();
curl_setopt(
$ch,
CURLOPT_URL,
$page
);
curl_exec($ch);
curl_close($ch);
}
Answer the question
In order to leave comments, you need to log in
I think PHP has nothing to do with it, most likely a network delay. But you can try apache benchmark .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question