Web之路 - Javascript - 特效|标准|兼容IE,Firefox|asp|c#.net|PHP|数据库|网络安全

去年今日此门中,人面桃花相映红。人面不知何处去,桃花依旧笑春风!

以下转自:http://www.usafreehost.com/?p=160 经本人测试确实有效!

在做两个数据库数据拷贝的时候,遭遇 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes With statement: 遇到这个问题,一般是客户端的 ‘max_allowed_packet’设置不够大。解决方法为:在终端执行以下命令 set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;

但如果你是将数据库copy到虚拟空间上,可能运行这个命令的权限就不够了,变相处理办法,使用单向同步操作来实现copy功能。

Tag:Got a packet bigger than max_allowed_packet bytes,#1153 - Got a packet bigger than max_allowed_packet bytes,1153 - Got a packet bigger than max_allowed_packet bytes,mysql Got a packet bigger than max_allowed_packet bytes,Got a packet bigger than max_allowed_packet bytes With statement,Communication link failure: 1153 Got a packet bigger than max_allowed_packet bytes,1153 Got a packet bigger than max_allowed_packet bytes,#1153 - Got a packet bigger than \max_allowed_packet\ bytes,got a packet bigger than,got a packet bigger than max_allowed_packed bytes,Got a packet bigger than max_allowed_packet bytes 1153,Got a packet b

  开始 运行control userpasswords2

  高级 管理密码

  如果每次都不想让计算机记录密码,记得是在组策略里面

  本地策略--安全选项--- 网络访问: 不允许存储网络身份验证的凭据或 .NET Passports

  启用.

  网络访问: 不允许存储网络身份验证的凭据或 .NET Passports

  此安全设置确定“存储的用户名和密码”是否保存通过域身份验证的密码、凭据或 .NET Passports 以备日后使用。

  启用此设置将阻止“存储的用户名和密码”存储密码和凭据。

  注意: 配置此安全设置时,所做的更改将在重新启动 Windows 后生效。

  有关“存储的用户名和密码”的详细信息,请参阅“存储的用户名和密码”。

  默认设置: 禁用。

1. 在upmodify上传参数中加入session参数,如下:

 'scriptData': {"SESSION_ID":"<?php echo session_id()?>"},

2. 在服务端接收页面加入以下代码:

if(@$_REQUEST['SESSION_ID'] && ($session_id=$_REQUEST['SESSION_ID']) !=session_id()){

    session_destroy();

    session_id($session_id);

    @session_start();    

}

这样就解决了 FLASH 不能正确传递页面session的问题。

这算是FLASH的一个BUG吧?

Apache有个userdir的模块

http://httpd.apache.org/docs/2.2/howto/public_html.html

以前没用过,想用一下,可是就是很403,日志也是简单的

Permission denied: access to /~username denied

后来在另一台用yum安装的服务器上找到答案。

# The path to the end user account ‘public_html’ directory must be

# accessible to the webserver userid. This usually means that ~userid

# must have permissions of 711, ~userid/public_html must have permissions

# of 755, and documents contained therein must be world-readable.

# Otherwise, the client will only receive a “403 Forbidden” message.

具体操作过程就是 

#chmod -R 711 /home/*

#cd /home/username/

#chmod 755 -R public_html

一切正常了。

本文转自:http://www.linuxdict.com/2009-02-apache%E4%B9%8Buserdir/

desc 表名;

show columns from 表名;

describe 表名;

show create table 表名;

select * from INFORMATION_SCHEMA.COLUMNS Where TABLE_SCHEMA='数据库名' and table_name = '表名';

注意红色部分。

在多个数据库有相同表名,就会出现重复的字段,红色部分是为了约束范围。

===================

20111229补充:

当数据表结构修改时,该语句需要重启MYSQL才能使结构变化改动生效!

另外还要检查你的AVD虚拟机里是否添加了 sd card Support 这项!--》本人注

=============

【解决方法】 

在cmd窗口一条命令就可以了: 

adb shell 

mount -o remount rw / 

【其它东东】 

如何一起动就让sdcard有读写权限呢? 

-------------------------------其它问题----------------------------- 

在程序中访问SDCard,你需要申请访问SDCard的权限。 

在AndroidManifest.xml中加入访问SDCard的权限如下: 

<!-- 在SDCard中创建与删除文件权限 --> 

<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> 

<!-- 往SDCard写入数据权限 --> 

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 

-------------------------------更多关于sdcard问题------------------------- 

为什么需要sdcard 

在android 中网页中图片的下载都会自动向sdcard 寻找空间,sdcard在开发测试中也是非常之必要。 

1:如何在模拟器中加载 sdcard 

通过文档中介绍可得如下示例: 

mksdcard -l sdcard 100M sdcard.i