码迷,mamicode.com
首页 > Web开发 > 详细

php命令行查看扩展信息

时间:2018-05-18 11:28:34      阅读:1539      评论:0      收藏:0      [点我收藏+]

标签:out   信息   size   过程   www   log   temp   cti   format   

通常,在php的开发过程中,我们会使用到第三方扩展,这时候,我们对于php扩展的信息的查看就显得尤为重要了。一般情况下,我们查看到扩展信息,都是直接通过 cat *.ini  文件来进行,这样子的效率是极低的,因为有时候你会不知道ini的文件在什么路径下,虽然通过查找很容易找到,但是总的来说还是麻烦的。

  那么我们要如快速的查看扩展信息呢?

当然是使用 php --ri 命令行了。

以查询  Seaslog  为例:

root@homestead:/tmp# php --ri Seaslog

SeasLog

SeasLog support => Enabled
SeasLog Version => 1.8.5
SeasLog Author => Chitao.Gao  [ neeke@php.net ]
SeasLog Supports => https://github.com/SeasX/SeasLog

Directive => Local Value => Master Value
seaslog.default_basepath => /home/www/log/seaslog-test => /home/www/log/seaslog-test
seaslog.default_logger => default => default
seaslog.default_datetime_format => Y:m:d H:i:s => Y:m:d H:i:s
seaslog.default_template => %T | %L | %P | %Q | %t | %M => %T | %L | %P | %Q | %t | %M
seaslog.disting_folder => On => On
seaslog.disting_type => Off => Off
seaslog.disting_by_hour => Off => Off
seaslog.use_buffer => On => On
seaslog.buffer_size => 100 => 100
seaslog.buffer_disabled_in_cli => Off => Off
seaslog.trace_notice => Off => Off
seaslog.trace_warning => Off => Off
seaslog.trace_error => On => On
seaslog.trace_exception => On => On
seaslog.level => 8 => 8
seaslog.recall_depth => 0 => 0
seaslog.appender => 1 => 1
seaslog.appender_retry => 0 => 0
seaslog.remote_host => 127.0.0.1 => 127.0.0.1
seaslog.remote_port => 514 => 514
seaslog.remote_timeout => 1 => 1
seaslog.trim_wrap => Off => Off
seaslog.throw_exception => On => On
seaslog.ignore_warning => On => On

  

可以看到信息是很丰富的,这样子,以后对于扩展信息的查询或者生效情况进行快速查阅了。

php命令行查看扩展信息

标签:out   信息   size   过程   www   log   temp   cti   format   

原文地址:https://www.cnblogs.com/cxbhakim/p/9054899.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!