2015年12月25日
摘要: $p)) { return $this->$p; } if($p == 'p1') { $this->$p = 456; } return $this->$p; }}$a = new A();var_dump($a->p1);//$a->p1 = null; //重新获取$a->$p1时,不会触... 阅读全文
posted @ 2015-12-25 15:32 yangyh 阅读(499) 评论(0) 推荐(0) 编辑
  2015年9月16日
摘要: 发生在高版本的gcc编译后的so用于低版本gcc编译出来的php, 解决方法, 加上参数-Wl,--hash-style=sysvphpize./configurevi MakefileCC = gccCFLAGS = -g -O2 -Wl,--hash-style=sysv 阅读全文
posted @ 2015-09-16 16:07 yangyh 阅读(548) 评论(0) 推荐(0) 编辑
  2015年8月6日
摘要: sudo chown /dev/bpf* 阅读全文
posted @ 2015-08-06 12:50 yangyh 阅读(499) 评论(0) 推荐(0) 编辑
  2014年10月22日
摘要: INSERT INTO video_tag_all(tagname,ctime) SELECT '利物浦',1413954816 FROM video_tag_all WHERE (SELECT last_insert_id(id) FROM video_tag_all WHER... 阅读全文
posted @ 2014-10-22 13:41 yangyh 阅读(491) 评论(1) 推荐(0) 编辑
  2014年10月8日
摘要: 查看用户权限:SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user;权限取决于最上一条记录的值如果需要收回权限:REVOKE ALL PRIVILEGES ON *.* FROM 'root'@'ip1';上面这条SQL将置G... 阅读全文
posted @ 2014-10-08 20:43 yangyh 阅读(760) 评论(0) 推荐(0) 编辑
  2014年8月2日
摘要: 1,空Array为False $a = array()if($a == false) { echo "This will be printed ! ! !" ; } 持续更新中 阅读全文
posted @ 2014-08-02 01:03 yangyh 阅读(125) 评论(0) 推荐(0) 编辑
  2013年10月17日
摘要: C++中没有super或parent关键字,想要调父类方法,只能使用明确的[父类名称::方法名]假如要求A和B是C的父类的前提下,要使如下代码能够分别输出A和B的相关信息(虽然这个要求很少遇到....,但是面试官就是这么变态)int main(int argc, char* argv[]){ C c; A* pA = &c; B* pB = &c; pA->foo(); //这里会输出和A相关的信息 pB->foo(); //这里会输出和B相关的信息 return 0;} 怎么办?// test.cpp : Defines the entry poi... 阅读全文
posted @ 2013-10-17 01:31 yangyh 阅读(5601) 评论(0) 推荐(0) 编辑
  2013年5月25日
摘要: /* * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles 阅读全文
posted @ 2013-05-25 09:58 yangyh 阅读(1834) 评论(0) 推荐(1) 编辑
  2013年4月15日
摘要: Baidu Cloud Development Toolkit 在OSX下可能会遇到找不到某些库,比如freetypelibfreetype.6.dylib下载,放到{ECLIPSE_HOME}/plugins/com.baidu.bdt.bae.sdkbundle.mac_1.5.0.201301311604/php/ext下!在10.6下没遇到这个问题,10.8下怎么会少个库呢...另附上freetype-2.3.5的源码吧,不行同学就自己编一个 阅读全文
posted @ 2013-04-15 00:55 yangyh 阅读(661) 评论(0) 推荐(0) 编辑
  2013年2月5日
摘要: 你以为mysql_query与mysqli_query是一样的参数吗?不,TNND恰恰是反过来的!查了好久 protected function query ( $sql ) { $sql = $this->sql_printf(func_get_args()); if (!($res = mysqli_query($this->conn, $sql))) { $this->sql_errcheck($sql); } if (is_resource($res)) { mysqli_free_result($res); } } protected function qu... 阅读全文
posted @ 2013-02-05 23:50 yangyh 阅读(256) 评论(0) 推荐(0) 编辑