Home > Backend Development > PHP Tutorial > ,为什么小弟我的Php脚本在浏览器里能执行,用php命令执行却报错

,为什么小弟我的Php脚本在浏览器里能执行,用php命令执行却报错

WBOY
Release: 2016-06-13 11:57:39
Original
971 people have browsed it

高手请进,为什么我的Php脚本在浏览器里能执行,用php命令执行却报错
如题,为什么我的Php脚本在浏览器里能执行,用php命令执行却报错说找不到驱动?我脚本里用了pdo连接sqlserver,但是我的pdo这些是装了的,也是enable的,在浏览器里执行完全没问题,结果用php xxxx.php命令来批处理这个php脚本就报错找不到驱动?
------解决方案--------------------
web 方式和 命令行 方式运行的 php 使用的是不同的 php.ini

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template