The*_*ter 8 php xampp batch-file
我正在尝试在我的服务器上每30分钟运行一个PHP脚本(Win XP SP3,xampp 1.7.3).为此,我使用MS任务计划程序运行以下脚本(update.cmd)
SET PATH="C:\xampp\PHP"
start php.exe \htdocs\update_dashboard.phpRun Code Online (Sandbox Code Playgroud)
我在我的网络服务器上使用oci8 php扩展,但是当我运行该脚本时,它给了我错误,php.exe无法找到oci8扩展所需的dll.我收到以下错误:
This application has failed to start because OCI.dll was not found. Re-installing the application may fix this problem.
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8.dll' - The specified module count not be found.
C:\instantclient_11_2;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\ActiveState Komodo Edit 5\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Altiris\Software Virtualization Agent\
This application has failed to start because OCI.dll was not found. Re-installing the application may fix this problem.
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8.dll' - The specified module count not be found.
我知道文件在那里,当php通过apache运行时我没有得到那些错误,我运行的是错误的php.exe副本吗?任何想法为什么不呢?我的PATH必须设置不同吗?我的Windows PATH包括:
C:\instantclient_11_2;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\ActiveState Komodo Edit 5\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Altiris\Software Virtualization Agent\
谢谢你的帮助.
我通过更改脚本以某种方式解决了这个问题。下雪了:
C:\xampp\PHP\php.exe -f C:\xampp\htdocs\php_scripts\utils\update_dashboard.php
谢谢您的帮助。