首页 >

PHP脚本实现Magento权限设置与缓存清理

php教程|php手册PHP脚本实现Magento权限设置与缓存清理
php缓存,magento,权限设置
php教程-php手册
PHP脚本实现Magento权限设置与缓存清理的实例代码有需要的朋友可参考一下.PHP实例代码如下:
说明网页源码,ubuntu删除全部应用,爬虫阅文网,php预防ddos,seo竞价思维lzw
isDir() ) chmod( $path, $dirModes );       else if( is_file( $path ) ) chmod( $path, $fileModes );   } }  ## 清除指定目录 function cleandir($dir) {     if ($handle = opendir($dir)) {         while (false !== ($file = readdir($handle))) {             if ($file != '.' && $file != '..' && is_file($dir.'/'.$file)) { if (unlink($dir.'/'.$file)) { } else { echo $dir . '/' . $file . ' (file) NOT deleted!
'; } } else if ($file != '.' && $file != '..' && is_dir($dir.'/'.$file)) { cleandir($dir.'/'.$file); if (rmdir($dir.'/'.$file)) { } else { echo $dir . '/' . $file . ' (directory) NOT deleted!
'; } } } closedir($handle); } } ## 判断目录是否为空 function isDirEmpty($dir){ return (($files = @scandir($dir)) && count($files) <= 2); } echo "----------------------- CLEANUP START -------------------------
"; $start = (float) array_sum(explode(' ',microtime())); echo "
*************** SETTING PERMISSIONS ***************
"; echo "Setting all folder permissions to 755
"; echo "Setting all file permissions to 644
"; AllDirChmod( "." ); echo "Setting pear permissions to 550
"; chmod("pear", 550); echo "
****************** CLEARING CACHE ******************
"; if (file_exists("var/cache")) { echo "Clearing var/cache
"; cleandir("var/cache"); } if (file_exists("var/session")) { echo "Clearing var/session
"; cleandir("var/session"); } if (file_exists("var/minifycache")) { echo "Clearing var/minifycache
"; cleandir("var/minifycache"); } if (file_exists("downloader/pearlib/cache")) { echo "Clearing downloader/pearlib/cache
"; cleandir("downloader/pearlib/cache"); } if (file_exists("downloader/pearlib/download")) { echo "Clearing downloader/pearlib/download
"; cleandir("downloader/pearlib/download"); } if (file_exists("downloader/pearlib/pear.ini")) { echo "Removing downloader/pearlib/pear.ini
"; unlink ("downloader/pearlib/pear.ini"); } echo "
************** CHECKING FOR EXTENSIONS ***********
"; If (!isDirEmpty("app/code/local/")) { echo "-= WARNING =- Overrides or extensions exist in the app/code/local folder
"; } If (!isDirEmpty("app/code/community/")) { echo "-= WARNING =- Overrides or extensions exist in the app/code/community folder
"; } $end = (float) array_sum(explode(' ',microtime())); echo "
------------------- CLEANUP COMPLETED in:". sprintf("%.4f", ($end-$start))." seconds ------------------
";
在线认证系统源码,vscode中全局搜索,ubuntu 选中 删除,tomcat启动ssm工程,爬虫增色,cps php,seo是指什么营销,网站源码主页怎么设置,源码之家easyui后台模板lzw
文章地址:
微信小游戏模板源码,ubuntu多版本共存,tomcat软链接不成功,重庆爬虫公司,php交流论坛完整代码技术,大丰seo优化lzw
转载随意^^请带上本文地址!


PHP脚本实现Magento权限设置与缓存清理
  • php实现memcache缓存实例详解
  • php实现memcache缓存实例详解 | php实现memcache缓存实例详解 ...

    PHP脚本实现Magento权限设置与缓存清理
  • PHP缓存集成库phpFastCache学习教程
  • PHP缓存集成库phpFastCache学习教程 | PHP缓存集成库phpFastCache学习教程 ...

    PHP脚本实现Magento权限设置与缓存清理
  • PHP缓存技术的多种方法
  • PHP缓存技术的多种方法 | PHP缓存技术的多种方法 ...