Again, you'll use the concept of passing an ajax flag to the server-side script to let it know whether it is being called by a regular GET request or by an ajax call.
同样,您将使用将一个ajax标记传递到服务器端脚本的概念,让它知道它正在被一个常规GET请求调用还是被一个ajax调用调用。
You can use this script from your crontab list for regular processing or run as required from the command line.
您从crontab列表使用此脚本进行常规的处理,也可以根据需要从命令行运行该脚本。
Now I, or someone else might forget the leading or trailing slash and some Windows user might use back slashes instead of regular slashes, so I decided to just handle that in the script.
现在,我(或者别的什么人)可能忘记了前导斜杠或末尾斜杠,而一些Windows用户可能使用反斜杠而不是正斜杠,因此我决定在脚本中对此进行处理。
应用推荐