Echoing content sometimes takes a very long time

前端 未结 8 1957
眼角桃花
眼角桃花 2021-02-19 16:20

I have a script that builds my webpage in one string ($content) and then echo it to the user.

My script looks like this:

$time1= microtime(true);
$conten         


        
8条回答
  •  逝去的感伤
    2021-02-19 16:34

    Do you have any while() or for() loops in your script? If so, you should check if these values aren't conflicting with anything, Occasionally I forgot about these myself and my script would also run for about 30 seconds.

提交回复
热议问题