在Windows Server上运行后台程序
我们有一个 Windows 程序,它在运行时自动执行以下操作:
启动时,检查要处理的目录中的新文件。 如果发现新文件,则根据文件抓取特定的 Web 数据。 将新数据输出到另一个目录中的文件中。
我们希望使用 PHP 创建一个 Web 应用程序,将文件上传到第一个目录并使用 exec() 在后台运行该程序。 Windows 服务器是否允许我们在后台运行该程序,直到它完成处理?它是否允许程序连接到网站来抓取数据?
We have a windows program that does the following automatically when run:
When started, checks for new files in a directory to process.
If a new file is found, scrapes specific web data based on file.
Outputs new data into a file in another directory.
We are looking to create a web app using PHP that uploads files into the first directory and uses exec()
to run the program in the background. Will a windows server allow us to run the program in the background until it finishes processing? And will it allow a program to connect to websites to scrape data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自深受喜爱的 PHP 手册中的用户注释:
From a users note in the beloved PHP Manual: