Can a PHP script be run regularly on a server without requests from a client?

前端 未结 5 1241
旧巷少年郎
旧巷少年郎 2021-01-13 15:02

I\'ll be writing a script to parse text documents into a MySQL database. I\'ll be converting PDF\'s to text with a separate utility. These PDF\'s will be submitted via e-m

5条回答
  •  渐次进展
    2021-01-13 15:36

    PHP itself cannot perform tasks by itself without a client request.

    The common way to to use cron job to schedule run scripts (shell, perl, PHP, python.. etc).

    If you are running on IIS, then you can use Schedule Tasks in Windows.

提交回复
热议问题