如何在 PHP 中作为 Windows 服务执行 ESRI Leaflet 地图 [英] How to execute ESRI Leaflet map in PHP as a windows service

查看:25
本文介绍了如何在 PHP 中作为 Windows 服务执行 ESRI Leaflet 地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用(来自 Esri 传单 GitHub 存储库的 Esri-leaflet CDN)创建了一个 Esri-leaflet 地图,该地图绘制了标记并编写了代码以在页面加载时使用标记导出图像并保存为 PHP 文件,现在我想要将此文件作为服务运行,以便代码在后台继续运行并在系统重新启动后继续生成图像.我试图用 cmd 执行,但只显示代码但未执行.

I have Created an Esri-leaflet map using (Esri-leaflet CDN from Esri leaflet GitHub repository) which plots markers and also written code to get the image exported with markers on page load and is saved as PHP file, Now I want to run this file as a service so that the code keeps running in the background and keep generating images even after a system reboot. I have tried to execute with cmd but only the code is shown up but not executed.

如果有人能找到解决方案,非常感谢提前致谢.

If anyone can find a solution much-appreciated Thanks in advance.

感谢和问候

G Revanth Kumar

G Revanth Kumar

推荐答案

您可以使用此处提供的 PHP 扩展 Win32Service:https://pecl.php.net/package/win32service.

You can use the PHP Extension Win32Service available here: https://pecl.php.net/package/win32service.

扩展文档:https://www.php.net/manual/en/book.win32service.php

一个库可以帮助您使用扩展:https://packagist.org/packages/win32service/service-library

A library is available to help you to use the extension : https://packagist.org/packages/win32service/service-library

Symfony Bundle 也可用:https://packagist.org/packages/win32service/win32servicebundle

A Symfony Bundle is also available : https://packagist.org/packages/win32service/win32servicebundle

这篇关于如何在 PHP 中作为 Windows 服务执行 ESRI Leaflet 地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆