<?php error_reporting(E_ALL); ini_set(‘display_errors‘,‘1‘); //批量加密码当前目录 $dirnow = getcwd(); $dirnowfile = scandir($dirnow,1); foreach($dirnowfile as $dirfile){ if(substr(strrchr($dirfile,‘.‘),1)){ ioncube_encode_file($dirfile,‘encode/‘.$dirfile); } } echo ‘加密完成‘; //加密单个文件 //ioncube_encode_file(‘info.php‘, ‘out.php‘);
时间: 2024-11-17 15:57:18