flexigrid 的json数组格式

November 11, 2009 – 5:25 pm

<?php

$arr= array("page"=>1,"total"=>1,
    "rows"=>array(
        0=>array("id"=>'1', "cell"=>array('1','学校管理','SCHOOL_MGR')),
        1=>array("id"=>'2', "cell"=>array('2','学校管理2','SCHOOL_MGR2')),
    )

阅读全文 »

xfire1.x版本不支持SOAP_1_2

November 11, 2009 – 11:44 am Tags: ,

php调用的时候,不能加’soap_version’ => SOAP_1_2

类似msn的信息提示框,来自vtigercrm

November 10, 2009 – 2:25 pm Tags:

<!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>提示信息框pop up</title>
<script language="javascript" src="include/scriptaculous/prototype.js" ></script>

阅读全文 »

用php_screw加密php源代码

November 1, 2009 – 1:44 am Tags:

在使用PHP过程中发现,自己编写的php代码因为都是源代码方式放在服务器上的所以很容易就被别人拿走随便修改(变成自己开发的)使用了。

为了保住自己的劳动成果,我一直寻找一种可以加密php代码的软件。

最著名的就是Zend公司的Zendencoder了,但是不是开源软件(要价很高,也没有找到破解版)。

既然收费的用不起,我们就用开源的。我找到了php_screw这个开源软件,目前最新版本是1.5


阅读全文 »

nutch 最新使用日志

October 23, 2009 – 9:40 pm Tags:

nutch网上有不少有它的源码解析,但是采集这块还是不太让人容易理解.今天终于知道怎么,弄的.现在把crawl-urlfilter.txt文件贴出来,让大家一块交流,也给自己备忘录一个。

 

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0

阅读全文 »

关于linux下crontab运行php脚本

October 22, 2009 – 9:44 pm Tags: , ,

linux下crontab 用php命令运行php脚本,php脚本include的文件必须在include_path里面,或者要用绝对路径包含。

php日志记录类

October 22, 2009 – 4:14 pm

<?php
//**********************************************************
// File name: LogsClass.class.php
// Class name: 日志记录类
// Create date: 2008/05/14
// Update date: 2008/05/14
// Author: blue
// Description: 日志记录类
// Example: $dir="a/b/".date("Y/m",time());
//            $filename=date("d",time()).".log";

阅读全文 »

php fwrite() 无法写文件,原因可能有几种?

September 30, 2009 – 5:34 pm

比较特别的原因之一:磁盘接近满了。

批量导入数据库记录。

August 31, 2009 – 8:20 pm Tags:

package com.kevin.stresstest;

import java.sql.*;

public class BigTableJoinTest {

/**
* @param args
*/
public static void main(String[] args) {
Connection conn = null;
try {
Class.forName(”com.mysql.jdbc.Driver”).newInstance();
// 建立到MySQL的连接
conn = DriverManager.getConnection(
“jdbc:mysql://localhost:8306/test”, “root”, “”);
Statement stmt;
PreparedStatement pstmt;

阅读全文 »

Mysql5 交叉表查询

August 7, 2009 – 11:39 pm Tags:

# Host: localhost    Database: test
# ——————————————————
# Server version 5.0.45-community-nt-log

#
# Table structure for table sale
#

DROP TABLE IF EXISTS `sale`;
CREATE TABLE `sale` (
`id` int(10) unsigned NOT NULL auto_increment,
`year` int(11) NOT NULL,
`quarter` int(11) NOT NULL,
`amount` decimal(15,2) NOT NULL,

阅读全文 »