c/php/javascript/java/python/bash linux/freebsd

  • 服务器(server),数据库(database),数据表(table)和连接(connection) 字符集.修改my.cnf# vim /etc/my.cnf [client] default-character-set=utf8 [mysqld] character-set-server=utf8 [mysql] default-character-set=u
    1 发起了话题 category: 程序员 2014-05-04 18:38:34
  • win7直接引导 linux grub1. dd命令复制 MBR/* * linux dd 命令 */ dd if=/dev/sda1 of=linux.bin bs=512 count=1 ##/// sda1 linux 所在分区2 . 将 linux.bin 移动到 windows 7 C 盘 根目录3 . bcdedit 创建一个启动项/* * windowns 7 cmd bcdedit
    1 发起了话题 category: 第一阶段PHP 2014-04-19 17:11:25
  • <?php $replace_from = array( ' ', '(', ')' ); $replace_out = array( '\ ', '\(', '\)' ); $str = str_replace( $replace_from , $replace_out , trim( urldecode(
    1 发起了话题 category: PHP记事本 2014-04-17 21:21:30
  • 获取 green_saver.kocd /boot/modules fetch http://files.pfsense.org/jimp/ko-8.3/amd64/green_saver.ko编辑 /cf/conf/config.xml<afterbootupshellcmd>/var/vidcontroll.sh</afterbootupshellcmd> </system>编辑 /va
    1 发起了话题 category: Freebsd 2014-04-05 19:40:48
  • wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.17-linux-glibc2.5-x86_64.tar.gz tar xvf mysql-5.6.17-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.17-linux-glibc2.5-x86_64 /usr/local/mysql /us
    1 发起了话题 category: PHP记事本 2014-03-28 16:11:42
  • 浏览器端<script type="text/javascript"> $('#submit').click(function(){ $email = $('#retake_psd_email').val(); $url = "/user/get_user_id?email="+$email+"&jsoncallback=?"; $.getJSON( $url, function(data)
    1 发起了话题 category: javascript 2014-03-12 15:53:50
  • php mysql 数据库类<?php class query_builder { protected $tableName = ''; protected $queries = array(); public $join = array(); protected $text = 0; protected $
    1 发起了话题 category: PHP记事本 2014-01-06 16:07:18
  • PHP 5.5.6版 2013年11月14日 发行变化核心:改进性能array_merge ( )以及func_get_args ()消除无用的复制。更正了BUG# 65947 (基本名是fgetcsv后没有更多的工作,在某些情况下) 。更正了BUG# 65939 (前空间“,”休息的php.ini解析) 。更正了BUG# 65911 (范围解析操作符 - 这奇怪的行为) 。更正了BUG# 65936 (晃来晃去的上下文指针会导致崩溃)
    1 发起了话题 category: PHP记事本 2013-11-14 20:13:40
  • PHP Reflection Example<?php class Person { public $name; function __construct( $name ) { $this->name = $name; } } interface Module { function execute(); } class FtpModule i
    1 发起了话题 category: PHP记事本 2013-10-30 23:03:59
  • http://yun.baidu.com/share/link?shareid=1951352518&uk=4093975210&third=0
    1 发起了话题 category: PHP记事本 2013-10-30 18:19:07
  •        和一些做NAT的老师接触,谈起NAT的问题,大多数都是自己用Linux使用iptables来搞定的,在具体谈到地址池的时候,发现很多老师都习惯将1个C网络NAT到一个单独的IP地址上,如果有N个C类地址,那就需要写N条iptables规则,当然这样做的好处是用户的源地址永远不会变,便于事件的追查等,当问到为什么非要把1个C映射到一个IP地址上时,大家的回答都是:怕一个地址的端口数量
    1 发起了话题 category: 程序员 2013-10-04 19:00:10
  • # Protect files and directories from prying eyes. <FilesMatch "(\.(inc|cfg.php|pre.php|inc.php|tpl.php|class.php|info|po|sh|sql)|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny </FilesMatch>
    1 发起了话题 category: apache 2013-09-11 11:20:15
  • Nginx Rewrite 规则指令if , rewrite , set break rewrite ^/xlxz/(.*)\.html /xlxz.php?php=$1 break; if ( !~f $request_filename ) { rewrite ^/xlxz_img/(.*)$ /site_php/$host/images/$1 last; }1, Nginx Rewrite break
    1 发起了话题 category: nginx 2013-09-10 00:00:09
  • 1.system configuration-disks partion layout and sizes partition size Minimum Maximum swap RAM / 8 2 * RAM / 256MB 512MB /tmp 128MB 512MB
    1 发起了话题 category: Freebsd 2013-09-08 09:58:46
  • <body style="margin:0;height:100%;width:100%;background-color:transparent;overflow:hidden"> <script src="\http:\//tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=728X90&c
    1 发起了话题 category: 程序员 2013-09-06 21:01:48
  • win 7 无线网络共享  单无线网卡1. 开启 虚拟无线AP “开始”---在搜索栏输入“cmd”----右键以“管理员身份运行”运行命令:netsh wlan set hostednetwork mode=allow ssid=q_lala key=xlxz.org.xlxz.org # mode:是否启用虚拟WiFi网卡,改为disallow则为禁用。 #
    1 发起了话题 category: 程序员 2013-09-02 21:38:46
  • php nginx 在centos 6.3 mini 下安装:1, 安装相关库[root@qcent6 ~]# yum -y install gcc autoconf gcc-c++ make libxml2-devel openssl-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel ldap-devel ncurses-devel openldap-devel
    1 发起了话题 category: linux 2013-09-03 11:59:00
  • nginx luanginx 安装 lua0.下载需要的软件[root@q_cent ~]# wget http://nginx.org/download/nginx-1.4.2.tar.gz [root@q_cent ~]# wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz [root@q_cent ~]# wget https://github.com/simpl/ng
    1 发起了话题 category: nginx 2013-08-25 22:09:19
  • PHP 在Freebsd 9.1 下的安装 1.下载 nginxroot@bsd91:/root # fetch http://nginx.org/download/nginx-1.4.2.tar.gz2.下载 php 5.5.2root@bsd91:/root # fetch http://www.php.net/get/php-5.5.2.tar.bz2/from/hk1.php.net/mirror ro
    1 发起了话题 category: Freebsd 2013-08-18 02:02:08
  • <?php //Yii::createWebApplication( $config )->run(); yii extends yiibase index.php; yii.php -> yiibase.php; // yiibase::createWebApplication; CWebApplication extends CApplication extends CModule extends CComp
    1 发起了话题 category: PHP记事本 2014-04-10 10:27:16
  • Showing 21-40 of 119 items.