dszn2485 2015-11-13 22:39
浏览 22

如何获取PHP CLI的输出以匹配OS X上的PHP Info

The output of my phpinfo() (from a web script) and php -i are different. In particular the Oracle OCI8 module is completely absent from my phpinfo() which I believe is causing issues when trying to connect to remote oracle databases.

Both the output from phpinfo and the CLI point to the same php.ini files so I'm not sure what exactly is going on.

There are also several environment variables missing from phpinfo given the output from CLI

I am using a brew installed php and apache on El Capitan. I used these tutorials when configuring my environment:

https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew

http://www.baldwhiteguy.co.nz/technical/index_files/mac-osx-oracle-instantclient.html

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 shape_predictor_68_face_landmarks.dat
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料