摘要:
代码如下declare l_ip varchar2(15);begin if OWA_UTIL.GET_CGI_ENV('X-FORWARDED-FOR') is not null then l_ip:= OWA_UTIL.GET_CGI_ENV('X-FORWARDED-FOR... 阅读全文
摘要:
1.直接在 SQL Developer中写入代码create or replace and compile java source named "HelloWorld"aspackage com.test;public class HelloWorld {public static String s... 阅读全文
摘要:
写此方法的目的是,我想把一个PHP数组配置文件读进程序,添加些配置,然后在写入文件;var_export 方法会把原来的配置打乱(比如数组序号我没有加,他自动给我加上 0,1,2,3...),而且格式不好看(缩进非常难看)。方法及应用array( 'class'=>'system.gii.GiiM... 阅读全文
摘要:
Yii GridView Ajax 刷新,当页面点击一个按钮时,刷新数据。1.控制器unsetAttributes(); if(isset($_GET['PrivAssign'])) $model->attributes=$_GET['PrivAssign']; $this-... 阅读全文
摘要:
在CGridView里,有时候需要用到复杂的查询时,可用CSqlDataProvider替换CActiveDataProvider,CSqlDataProvider 可用复杂的查询语句,例子如下:1.在控制器中: public function actionIndex() { ... 阅读全文
摘要:
Yii的srbac拓展中“用户已经获授权项”点下拉框,选择一个有权限的用户时,根本无法列出权限。原因是srbac把数据库的表中的ID默认为数字,像 123这样,但如果不是数字像这样 'y0f22ffc2fef712fd602a1ef64ab319t' 。那么这个是不会出来的,那么只能修改代码 了。修... 阅读全文
摘要:
用gcc/g++编译winsock程序 D:\My\code>gcc -o getweb.exe getweb.c -lwin32socket 如果不加此句 -lwin32socket 编译会报错 阅读全文
摘要:
Yii 三表关联 角色表、角色权限连接表、权限表角色表 role----------------id 唯一序号name 角色名称----------------角色权限连接表 lp---------------id 唯一序号r_id 连接角色IDp_id 连接权限ID----... 阅读全文
摘要:
配置如下 DocumentRoot D:\web_root\test ServerName www.test.com Options FollowSymLinks AllowOverride All Order deny,allow Allow from all #以下是配... 阅读全文
摘要:
本文转自:http://blog.chinaunix.net/uid-17079336-id-2832443.html1、创建表的同时创建主键约束(1)无命名create table student (studentid int primary key not null,studentname va... 阅读全文