`
lucklrj
  • 浏览: 23851 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
electron官方地址:https://github.com/sindresorhus/awesome-electron 1. 先下载electron的官方演示程序, git clone https://github.com/atom/electron-quick-start 我下载放到了 D:\study\electron\1 下面,只保存以下三个文件 index.html main.js package.json 2.安装 electron-prebuilt npm install electron-prebuilt -g(这步很慢,可以用cnpm代替) 安装成功后,node.js根目 ...
   老笔记本了把光驱拆了,装一个ssd上去,装成了fedroa23,原来硬盘重装了windows7 准备把开发环境换成linux,其他娱乐环境依然用win7   2块硬盘启动顺序手动控制,然后win7安装了php环境,数据库使用以前5.5的备份,在fedroa上装了mysql5.7,并自动挂载win7所用的硬盘,mysql5.7目录指向win7硬盘位置。,新的版本使用了数据压缩,不支持向下兼容,导致win7数据库无法启动,解决办法:把windows的升级到mysql 5.7即可.
过滤在线编辑器产生的不安全html代码; <?php /** * 过滤在线编辑器产生的不安全html代码. * * PHP versions 4 and 5 * * @copyright 版权所无,任意传播. * @link http://www.52sunny.net * @name html过滤 * @version v 0.0.10 * @author Lucklrj (sunny_lrj@yeah.net,qq:7691272) * @lastmodified 2006-06-09 10:42 (Tue, 2006-06-09) * @notice 此版本 ...
常见应用环境: //把一个多维数组,按field 顺序建一个新的多维数组,层数为array_field的个数 function extended_array($array,$fields,$clear=1){ $array_field=explode(",",$fields); $array_field_length=count($array_field); $tmp=array(); foreach ($array as $key => $single_info){ $next=&$tmp; foreach ...
产生的po文件,以utf8无bom保存, msgfmt -o default.mo default.po --verbose default.po: warning: PO file header missing, fuzzy, or invalid warning: charset conversion will not work found 1 fatal error 将po文件以多种格式保存,均如此。多方无解,最后安装virtaal.exe,打开po产生的mo可以正常使用。 命令行编译的mo可以用virtaal打开,但应用无法翻译,不明原因。
日志: [Tue Jan 13 17:49:53 2015] [warn] [client 127.0.0.1] mod_fcgid: HTTP request length 132391 (so far) exceeds MaxRequestLen (131072), referer: *** <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi .php FcgidInitialEnv PHPRC        "C:/web_soft/php" FcgidInitialEnv PHP_FCGI_MAX_R ...
安装无难点,但跟widnows版本有关,zend guard loader只支持非线程安全的版本,也就是nts,apache以模块方式安装php,又需要线程安全版本,所以需要使用mod_fcgid http://download.csdn.net/detail/hm446434459/4146487作为fastcgi方式运行php.

nginx+php+ci

    博客分类:
  • php
配置文件备忘:                 location / {                      index  index.php;                      if (!-e $request_filename) {                          rewrite  ^/(.*)$  /index.php/$1  last;                          break;                      }                  }                 location ~ .+\.php( ...
按照phpexcle的api,将excle解析为数组的代码: $this->excel = PHPExcel_IOFactory::load($this->file_path); $sheetData = $this->excel->getActiveSheet()->toArray(null,true,true,true); 如果字段有日期格式,比如2014-06-28 23:12:08,解析出来的数组对应的日期字段有问题,百度了下各种解决办法,以下最方便。 $this->excel = PHPExcel_IOFactory::load($t ...
第一步加载js /*加载jq*/ var _doc=document.getElementsByTagName('head')[0]; var script=document.createElement('script'); script.setAttribute('type','text/javascript'); script.setAttribute('src','http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js'); _doc.appendChild(script); 第二步 var tags= ...
Index: Router.php =================================================================== --- Router.php (版本 11328) +++ Router.php (版本 12362) @@ -274,13 +274,26 @@ return $segments; } + $dir=$segments[0]; + $dir_level=0; + + while(is_dir(APPPATH.'controllers/'.$dir)){ + $dir_l ...
在模拟登录新浪微博的时候,发现用户名,密码都用js ras2方式加密传输。尝试将js加密过程用php来实现,结果发现一直提示用户名密码不对,用php翻译js也失败。 最后搜索出用node.js来实现。 c("Encryption password"); $cmd = "node D:\web\data\sina.js ".$pre_login_data['pubkey']." ".$pre_login_data['servertime']." ".$pre_login_data['nonce'].&quo ...
模拟登录微信公众平台,进行群发的js 用法: 1:打开微信公众平台的用户列表,修改单页显示参数,避免分页 2.打开firebug 控制台,将一下代码贴入 3.执行 send()即可,相关参数自己修改 发到一定数量时,将会提示需要输入验证码,此时输入正确后,同样内容继续群发仍会提示,需要给不同人发一点其他内容,多试几次,即可回到群发上来。 var friendList = jQuery.parseJSON(jQuery('#json-friendList').html()) || []; var friend=[]; for(var i in friendList){ f ...
update photo set order_id=0; update photo p,(SELECT @row := 0) r set p.order_id= (@row := @row + 1) where p.active=1 ;
算缺陷也好,算bug也好,反正它出错了。 pdo_driver function _execute($sql) if(substr(strtolower($sql),0,6)=="select") //if (is_numeric(stripos($sql, 'SELECT')))//这里判断不对 注释这排是CI的,漏掉了insert into select..这种情况,包含了selec一律做为读操作进入下面的循环,导致重复执行了一次写sql
Global site tag (gtag.js) - Google Analytics