Php, wait 5 seconds before executing an action

前端 未结 7 507
执笔经年
执笔经年 2021-02-05 00:42

I have a .php script that I use for creating the list of my products. I am on shared hosting, so I can\'t do a lot of queries otherwise I get a blank page.

This

7条回答
  •  悲&欢浪女
    2021-02-05 01:25

    I am on shared hosting, so I can't do a lot of queries otherwise I get a blank page.

    That sounds very peculiar. I've got the cheapest PHP hosting package I could find for my last project - and it does not behave like this. I would not pay for a service which did. Indeed, I'm stumped to even know how I could configure a server to replicate this behaviour.

    Regardless of why it behaves this way, adding a sleep in the middle of the script cannot resolve the problem.

    Since, presumably, you control your product catalog, new products should be relatively infrequent (or are you trying to get stock reports?). If you control when you change the data, why run the scripts automatically? Or do you mean that you already have these URLs and you get the expected files when you run them one at a time?

提交回复
热议问题