通过php调用exe

发布于 2024-10-08 20:05:08 字数 171 浏览 0 评论 0原文

我有一个 exe 文件,我使用“system”命令通过 php 调用该文件。然后,exe 文件出于某种原因调用 Microsoft mapi,我不知道当我通过 php 调用 exe 时,mapi 没有被初始化,但如果我从命令行运行 exe,它工作正常。有什么线索吗?

ps 我在 2008 服务器上运行 iis

I have an exe file that I'm calling through php using the 'system' command. The exe file then makes calls to Microsoft mapi for some reason that i don't know the mapi is not getting initialized when i call the exe through php but if i run the exe from command line it works fine. Any clue why?

p.s I m running iis on 2008 server

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ら栖息 2024-10-15 20:05:08

这可能与权限有关。 PHP 将在 IIS 为该资源配置的任何用户帐户下运行。

另外,请确保您的路径正确。如果您还没有,请首先显式定义路径。

This likely has to do with permissions. PHP will run under whatever user account IIS is configured for that resource.

Also, make sure your paths are correct. If you haven't already, start by explicitly defining the path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文