在 32 位模式下从命令行运行 php

发布于 2024-08-16 02:40:04 字数 178 浏览 2 评论 0原文

是否可以告诉 php 在 32 位模式下从命令行运行脚本?我有一个使用 ODBC 驱动程序的 php 脚本,该驱动程序仅在 PHP 以 32 位运行时才有效。这是我对脚本的调用方式:

php -d safe_mode=0 -f checkImport.php

有什么想法吗?

Is it possible to tell php to run a script from the command line in 32-bit mode? I have a php script that uses an ODBC driver that is only works when PHP is run in 32-bit. Here is how I'm calling the script:

php -d safe_mode=0 -f checkImport.php

Any ideas?

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

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

发布评论

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

评论(1

无畏 2024-08-23 02:40:04

你不能。 PHP 解释器编译为 64 位或 32 位。您可以做的就是在系统上编译或安装单独的 32 位版本的 PHP。如何做到这一点是非常特定于平台的。

You can't. The PHP interpreter is compiled either as 64-bit or as 32-bit. What you can do is compile or install a separate 32-bit edition of PHP on your system. How to do this is very platform specific.

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