make script execution to unlimited

前端 未结 3 728
故里飘歌
故里飘歌 2020-12-08 18:07

I need to run a script into localhost (xampp) which will generate 14400 records and adds them into database, I have set the max_execution_time = 50000000000, I

3条回答
  •  暖寄归人
    2020-12-08 19:06

    As @Peter Cullen answer mention, your script will meet browser timeout first. So its good idea to provide some log output, then flush(), but connection have buffer and you'll not see anything unless much output provided. Here are code snippet what helps provide reliable log:

    set_time_limit(0);
    ...
    print "log message";
    print ""; flush();
    print "log message";
    print ""; flush();
    

提交回复
热议问题