Home  >  Article  >  Backend Development  >  PHP代码加密,php加密_PHP教程

PHP代码加密,php加密_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:01:54859browse

PHP代码加密,php加密

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

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

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

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

            echo $file . '
' ;         

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

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

        }

    }

    closedir ( $handle );

}

?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/971766.htmlTechArticlePHP代码加密,php加密 ?php //源文件所在目录 $dir = "./tp/Home/Lib/Action/" ; if ( $handle = opendir ( $dir )) { while ( false !== ( $file = readdir ( $handle ))) { if...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn