Home > php教程 > php手册 > body text

PHP代码加密,php加密

WBOY
Release: 2016-06-13 09:10:47
Original
1028 people have browsed it

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 );

}

?>

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!