Sep032013
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...阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
抢沙发
Aug102013
Aug072013
批量处理文章内容
<?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 ...阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
Aug072013
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 ) {
// $...阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
May282013
小明原创-windows目录权限批量设置
<?php
//获取文件目录列表,该方法返回数组
function getDir($dir=”) {
$dir=empty($dir) ? getcwd() : $dir;
$dirArray[]=NULL;
if (false != ($handle = opendir ( $dir ))) {
$i=0;
while ( false !== ($file = readdir ( $handle )) )...阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
May262013
php按行分割为数组
$urls = array_filter ( array_unique ( explode ( “\r\n”, $url ) ) );
阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
Apr122013
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 ...阅读全文
作者:绝缘体.. | 分类:首页 | 阅读: |
Feb262013
Feb222013
消除点击网页图片、文字链接后出现的虚线框
一般网页:
请在网页<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...阅读全文
Dec072012
文本框 自动转换空格和全角逗号为半角逗号
onKeyUp="this.value=this.value.replace(/,/g, ','); this.value=this.value.replace(/ /g, ',');"
阅读全文