Heim  >  Artikel  >  Backend-Entwicklung  >  PHP代码加密,php加密_PHP教程

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

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

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...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn