PHP头条
热点:

PHP代码加密,php加密


<?php

// 源文件所在目录
$dir = "./tp/Home/Lib/Action/" ;

if ( $handle = opendir ( $dir )) {

    while ( false !== ( $file = readdir ( $handle ))) {

        if ( $file != "." && $file != ".." ) {

            echo $file . '<br />' ;         

            // 去掉文件中的所有注释和空格
            $newFile = php_strip_whitespace($dir . $file);

            // 把去掉注释和空格的文件重新写入到NewAction文件夹中
            file_put_contents('./tp/Home/Lib/NewAction/' . basename($file), $newFile);

        }

    }

    closedir ( $handle );

}

?>

www.phpzy.comtrue/php/33621.htmlTechArticlePHP代码加密,php加密 ?php //源文件所在目录 $dir = "./tp/Home/Lib/Action/" ; if ( $handle = opendir ( $dir )) { while ( false !== ( $file = readdir ( $handle ))) { if ( $file != "." $file != ".." ) { echo $file . 'br /' ; // 去掉...

相关文章

    暂无相关文章

PHP之友评论

今天推荐