dongzong7467 2013-06-22 22:25
浏览 90
已采纳

Windows下的PHP CLI - 它是如何在PATH中获得的?

I'm using WAMP and there I have PHP 5.4.x - under CLI I realized I have PHP 5.3.x (php --version shows 5.3.5). I checked the environment variables but for the declared PATH there is nothing related to PHP. Any ideas how to figure out which executable and why is referenced in the CMD (I probably have installed a package long time ago and forgot about it)?

It's Windows 7 x64.

  • 写回答

1条回答 默认 最新

  • dongnuan7956 2013-06-22 23:17
    关注

    Run this

    php -r "for(;;) sleep(1);"
    

    in your cmd and then use the task manager to find the php.exe and open the properties.

    There you should able to find the path of the executable.

    screenshot

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 两个不同Subnet的点对点连接
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用
  • ¥15 请帮我看一看数电项目如何设计
  • ¥23 (标签-bug|关键词-密码错误加密)
  • ¥66 比特币地址如何生成taproot地址