![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
文章平均质量分 62
ahyswang
热爱编程,更热爱生活
展开
-
PATH_INFO
PHP中的全局变量$_SERVER['PATH_INFO']是一个很有用的参数,众多的CMS系统在美化自己的URL的时候,都用到了这个参数。 对于下面这个网址: http://www.test.com/index.php/foo/bar.html?c=index&m=search 我们可以得到 $_SERVER['PATH_INFO'] = ‘/foo/bar.html’,而此时转载 2013-04-26 09:15:45 · 324 阅读 · 0 评论 -
PHP脚本监控程序
#!/bin/sh # Find ip IP=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{ print substr($2, index($2, ":")+1)}'` #monitor procname scriptname monitor() { procname=$1 scriptname=$2 # Find proc by p原创 2014-10-12 09:16:48 · 1042 阅读 · 0 评论