This code always appears around 2m 504 Proxy Timeout exception, for what reason

Source: Internet
Author: User
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);
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.