天天看点

php m 不显示 redis,为什么phpinfo里没有redis?

输入命令,php -i:

phpinfo()

PHP Version => 7.1.12

System => Windows NT DESKTOP-6UOJ7F2 10.0 build 16299 (Windows 10) AMD64

Build Date => Nov 23 2017 04:17:05

Compiler => MSVC14 (Visual C++ 2015)

Architecture => x64

Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo"

Server API => Command Line Interface

Virtual Directory Support => disabled

Configuration File (php.ini) Path => C:\Windows

Loaded Configuration File => D:\software\SalamanderWnmp\php\php.ini

Scan this dir for additional .ini files => (none)

....

查看Loaded Configuration File项

然后看看你网页中Loaded Configuration File是否一样