Could someone show me how to write this while loop for my php application please?
Because of the current curl connection issue we are having, in the short term, I am just forcing curl to re-excute up to 4 times and that is working for right now. We will address the real reason behind the connection issue later.
what I want to say is:
while $curlValue is either 7 or curlValue is 0 or $socketValue is 111 and the $curlCounter is less 4
run this code
how do I correctly write this while state for php. my first attempt is attached.
$curlValue = curl_errno($ch);
$socketValue = curl_error($ch);
$curlCounter = 0;
while($curlValue == 7 || $socketValue == 111 AND $curlCounter < 4 )