This code always appears around 2m 504 Proxy timeout error, what is the reason?
This post was last edited by Helloqhq on 2010-12-23 10:03:26
This code when $fucknum relatively large, such as 1000, will appear 504 Proxy timeout error, and the program no longer executes after the error, it seems to stop, $fucknum value compared to the hour will not appear this error, what reason? Would you please advise
function Autonewnewegg ($arr) {
$fucknum =intval ($arr [' fucknum ']); # Gets the integer value of the number of fetch bars
$outime = $fucknum *2+100;
Set_time_limit ($outime);//Set Script execution time
$nextnum =20;//10 consecutive lookups do not exist then terminate
$SN = $arr [' SN '];
$acl =explode ("-", $SN);
$acl _1=preg_replace ('/[^0-9]+/', ', $acl [1]); two times
$a = $b = 0; two times
while ($fucknum >0) {
$arr 1 = $arr 2 = array ();
if ($acl [2]<1000&& $acl _1<100) {
$acl [2]=str_pad ("$acl [2]", 3, ' 0 ', str_pad_left);
$acl _1=str_pad ("$acl _1", 2, ' 0 ', str_pad_left);
$acl [1]= "C". $acl _1;
$arr _in=implode ("-", $acl);
$url = $GLOBALS [' Competitor '][1][' product ']. $arr _in. '. htm ';
if ($acl [2]==999) {
$acl _1= $acl _1+1;
$acl [2]=001;
}else {
+ + $acl [2];
}
}elseif ($acl [0]<=99) {
$acl [0]=str_pad ("$acl [0]", 2, ' 0 ', str_pad_left);