从命令行运行PHP脚本时的入口点错误 [英] Entry Point Error when running PHP script from command line

查看:110
本文介绍了从命令行运行PHP脚本时的入口点错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过编写批处理文件来计划在Windows上运行PHP脚本。这是运行脚本的行:

I am trying to schedule a PHP script to run on Windows by writing a batch file. Here is the line that runs the script:

C:\Program Files (x86)\PHP>php.exe -f D:\Web\Sites\scriptPage.php

这将运行页面和结果的页面进程罚款,但它正在弹出此消息

This runs the page and the results of the page process fine but it is poping up this message

程序入口点zend_ini_string_ex不能位于动态链接库php5.dll

"The procedure entry point zend_ini_string_ex could not be located in the dynamic link library php5.dll"

我不知道为什么会发生这种情况。我们根本不使用Zend。我已经在几个不同的页面尝试了这个,同样的事情发生。

I am not sure why this is happening. We are not using Zend at all on this. I have tried this on a few different pages and the same thing happens.

任何帮助将是巨大的。

谢谢!

推荐答案

我知道这是一段时间,因为这是解决,但我遇到相同的症状的问题。我有Zend服务器安装在Windows服务器上,并试图配置计划任务,但它没有启动

I know it's been a while since this is solved but I run into problem with the same symptoms. I have Zend Server installed on a Windows server and was trying to configure scheduled task but it was not launching


程序入口点php_checkuid不能位于动态limk库php5.dll

the procedure entry point php_checkuid could not be located in the dynamic limk library php5.dll

问题是,以前我有另一个PHP版本(独立,不与Zend服务器)安装和在Windows环境变量PHPRC变量指向旧版本的PHP。我改变了这个变量,所以它指向Zend Srever的PHP和一切工作。

Problem was that previously I had another PHP version (standalone, not with Zend Server) installed and in Windows Environment Variables PHPRC variable was pointing to that old version of PHP. I changed this variable so it pointed to Zend Srever's PHP and everything worked.

这篇关于从命令行运行PHP脚本时的入口点错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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