apache 虚拟主机

    NameVirtualHost *:80 <VirtualHost *:80> ServerName * DocumentRoot "F:\www_8888_com" <Directory "F:\www_8888_com"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.php default.php index.html index.htm default.htm AllowOverride all Order Deny,Allow Allow from all Options Indexes FollowSymLinks Includes </Di...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    php符号

    // html特殊字符 $HtmlChar = "&acute;,&copy;,&gt;,&micro;,&reg;,&amp;,&deg;,&iexcl;,&raquo;,&brvbar;,&divide;,&iquest;,&not;,&sect;,&bull;,&frac12;,&laquo;,&para;,&uml;,&cedil;,&frac14;,&lt;,&plusmn;,&times;,&cent;,&frac34;,&macr;,&quot;,&am...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    批量处理文章内容

    <?php require_once (dirname ( __FILE__ ) . "./include/common.inc.php"); $dsql = "select aid,body from hk_addonarticle"; $db->Execute ( 'me', $dsql ); $Result=array(); while ( $arr = $db->GetArray () ) { $body=preg_replace("/onclick=('|\")?(.*)\\1/sU",'',$arr ['body']); $body=str_replace("style=\"cursor:pointer\" ","",$body); $sql ="update ...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    php批量给添加图片alt属性

    <?php // require_once (dirname ( __FILE__ ) . "/include/common.inc.php"); // require_once ("/admin/inc/inc_archives_functions.php"); // $tables = array ( // '#@__addon7', // '#@__addon8', // '#@__addon9', // '#@__addon10', // '#@__addon11', // '#@__addon12', // '#@__addon13', // '#@__addonarticle' // ); // foreach ( $tables as $table ) { // $...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    小明原创-windows目录权限批量设置

    <?php //获取文件目录列表,该方法返回数组 function getDir($dir=”) {     $dir=empty($dir) ? getcwd() : $dir;     $dirArray[]=NULL;     if (false != ($handle = opendir ( $dir ))) {         $i=0;         while ( false !== ($file = readdir ( $handle )) )...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    php 得到上周,本周,上月,本月,本季度,上 季度

    <?php echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; echo date("Ymd",strtotime("-1 week Sunday")), "\n"; echo date("Ymd",strtotime("+0 week Monday")), "\n"; echo date("Ymd",strtotime("+0 week Sunday")), "\n"; echo "*********第几个月:"; echo date('n'); echo "*********本周周几:"; echo date("w"); echo ...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    消除点击网页图片、文字链接后出现的虚线框

    一般网页: 请在网页<head></head>区之间加入 <!– IE下消除点击图片文字后出现的虚线框代码 –> <style type=”text/css”>a {blr:expression(this.onFocus=this.blur())}</style> <!– Firefox下消除点击图片文字后出现的虚线框代码 –> <script> window.onload=function(){ for(var i=0; i<doc...阅读全文
    作者:绝缘体.. | 分类:学东西, 首页 | 阅读: |