网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  php 批量脚本检测语法错误

php 批量脚本检测语法错误

分类: IT文章 • 2023-11-29 19:01:19

shell 根据参数检测 当前php项目下 的语法错误


#!/bin/bash
function getdir(){
	for el in `ls $1`
	do
	   dir_file=$1"/"$el
	   if [ -d $dir_file ]
	   then
		getdir $dir_file
	   else
		   ext=${dir_file##*.}
			if [ $ext = 'php' ]
			then
			  file_is=`php -l $dir_file`
			#echo $dir_file
				if [[ $file_is =~ "No syntax errors detected" ]]
				then
					echo $file_is
					#continue
				else
					echo $file_is
				fi
			fi
	   fi
	done

}

root_dir="/home/wwwroot/zhengshi_system/nianbao_crs_jsj_edu_cn/trunk/public/web"
getdir $1

相关推荐

  • fofaAPI获取url并批量检测4.22通达oa任意用户登录漏洞 Python练习时长7天半的成果,大佬留情 问题 fofaAPI 大佬的POC加自己写的批量执行的脚本
  • PHP 批量检测网站是不是正常打开
  • php 批量脚本检测语法错误
  • SSRF——weblogic vulhub 漏洞复现及攻击内网redis(一)(附批量检测脚本) 0X01 概述 0X02 vulhub weblogic SSRF 漏洞复现 0X03 批量检测脚本
  • 求PHP脚本检测MYSQL版本解决方案
  • 简略的移动设备检测PHP脚本
  • PHP实现批量检测网站是否能够正常打开的方法
  • php实现批量压缩图片文件大小的脚本
  • PHP批量检测并去除文件BOM头代码实例
  • 如何检测来自 CNAME 子域的传入请求(使用 PHP 脚本)?
  • 预处理数据
  • php生成gitbook路径
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号