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指定行读取文件的方法

    /* * $file 文件 * $start 1 从首行开始,0 随机取,-1 从尾行开始 * 结果数组 /* function getFileRows($file, $start = 1, $num = 0) { $_start = $start; $rowsdata = array (); $lines = file ( $file ); if ($_start > 0) { $start = $start - 1; } else { $start = count ( $lines ) + $start; } $num = $num == 0 ? count ( $lines ) - $start : $nu...阅读全文
    作者:绝缘体.. | 分类:学东西 | 阅读: |

    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 ) { // $...阅读全文
    作者:绝缘体.. | 分类:首页 | 阅读: |

    php批量处理图片大小

    <?php require_once (dirname ( __FILE__ ) . "/include/common.inc.php"); require_once ("/admin/inc/inc_archives_functions.php"); function myscandir($path) { $mydir = dir ( $path ); while ( $file = $mydir->read () ) { $p = $path . '/' . $file; if (($file != ".") and ($file != "..")) { $file_arr [] = $p; } if ((is_dir ( $p )) and ($fil...阅读全文
    作者:绝缘体.. | 分类:学东西 | 阅读: |

    以平衡的心态做人 以进取的心境做事

      失衡则倾,心失衡则乱。平衡的心态是我们赢得幸福生活的制胜法宝。生活在如今日新月异的现实社会中,每天都会遇到各种各样复杂的情况、遇到性格各异的人,这些事和人往往会影响我们的心态,使我们的心情和做事的方式随之变化。这时平衡心态便显得异常重要,如果我们能够静下心来,能够保持一个平衡的心态,能够冷静地总结自己的得与失,客观地对待身边发生的事,保持一个良...阅读全文
    作者:绝缘体.. | 分类:学东西 | 阅读: |

    mysql数据库表前缀批量修改工具

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>mysql数据库表前缀批量修改工具</title> <style> body { font: 12p...阅读全文
    作者:绝缘体.. | 分类:MySQL, 囤技术 | 阅读: |

    iis新建站点的好工具

    <?php //获取文件目录列表,该方法返回数组 function getDir($dir='') { $dir=empty($dir) ? getcwd() : $dir; $dirArray[]=NULL; if (false != ($handle = opendir ( $dir ))) { $i=0; while ( false !== ($file = readdir ( $handle )) ) { //去掉"“.”、“..”以及带“.xxx”后缀的文件 if ($file != "." && $file != ".."&&!strpos($file,".")) { ...阅读全文
    作者:绝缘体.. | 分类:囤技术 | 阅读: |