This code always has a 504ProxyTimeout exception around 2 MB. why?-php Tutorial

Source: Internet
Author: User
This code always has a 504ProxyTimeout error about 2 MB. why? At the end of this post, the code was edited by helloqhq from 2010-12-2310: 03: 26. when $ fucknum is large, for example, 1000, 504 & nbsp; Proxy & nbsp; A Timeout error occurs. after an error is reported, the program will not be executed again. it seems that the code $ fucknu is always running at around 2 MB. why is the 504 Proxy Timeout error?

This post was last edited by helloqhq at 10:03:26

When $ fucknum is large, for example, 1000, the 504 Proxy Timeout error will occur, and the program will not continue to run after the error is reported, as if it has stopped, $ the fucknum value is less than an hour. why? Please advise
Function autonewnewegg ($ arr ){
$ Fucknum = intval ($ arr ['fucknum']); // # obtain the integer of the number of captured entries
$ Outime = $ fucknum * 2 + 100;
Set_time_limit ($ outime); // you can specify the script execution time.
$ Nextnum = 20; // terminate if 10 consecutive queries do not exist
$ Sn = $ arr ['SN '];

$ Acl = explode ("-", $ sn );
$ Acl_1 = preg_replace ('/[^ 0-9] +/', '', $ acl [1]); // second
$ A = $ B = 0; // twice

While ($ fucknum> 0 ){
$ Arr1 = $ arr2 = 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 );

When 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.