改善webERP运行速度很慢的问题

 

转自http://174.37.137.202/bbs/read.php?tid=679

此问题的原因在于,webERP下面有个Sourceforge的logo和相关的URL, 每次都会去查找这个网站,可以采取如下方法:

 将includes/MiscFunctions.php 中最后大约300行的

01 function  http_file_exists( $url
02 {
03    $f =@ fopen ( $url , "r" );
04    if ( $f )
05    {
06      fclose( $f );
07      return  true;
08    }
09    return  false;
10 }
改成
1 function  http_file_exists( $url
2 {
3    return  false;
4 }
就速度飞快了,enjoy it!
posted @ 2012-04-24 08:39  Mose  阅读(367)  评论(0编辑  收藏  举报