摘要: //通过搜狐接口获取用户的ip; $json = file_get_contents('http://pv.sohu.com/cityjson?ie=utf-8'); preg_match_all('/"cip"\s*:\s*"([^"]+)"/', $json, $result, PREG_SET_ORDER); if (empty($r... 阅读全文
posted @ 2018-11-21 10:18 王芬老师 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 最近部门招聘,很多工程师,包括我在内都参与了内推和面试的过程,经过这次招聘,我发现能够最终拿到offer的人,基本上在看到简历的那一瞬间就已经定下来了,后续的面试只不过是一种验证而已(注意,是验证,而不是走过场),除非你面试过程中犯错误,或者你不想来,否则,那个offer一定是可以拿下的。 那些拿下 阅读全文
posted @ 2018-11-03 19:02 王芬老师 阅读(1782) 评论(0) 推荐(0) 编辑
摘要: <?php function tree($arr,$pid=0,$level=0){ static $list=array(); foreach($arr as $v){ //如果为父级节点,存到数组中; ... 阅读全文
posted @ 2018-11-03 18:40 王芬老师 阅读(94) 评论(0) 推荐(0) 编辑
摘要: public function get_tree(){ //递归遍历数组; $items=[]; foreach($position as $k=>$v){ $items[$v['id']]=$v; } $tree=[]; foreach($items as ... 阅读全文
posted @ 2018-07-06 15:40 王芬老师 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、重启网卡提示Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. 2、这是因为克隆的机器没有正确的mac,UUID信息冲突导致的,首先将/etc/udev/rules.d/70-persistent-net.rules文件清空: 3、r... 阅读全文
posted @ 2018-07-04 14:25 王芬老师 阅读(308) 评论(0) 推荐(0) 编辑
摘要: queue,$value); } /** * 尾部出队 * @return [type] [description] */ public function removeLast(){ return array_pop($this->queue); } ... 阅读全文
posted @ 2018-07-03 23:35 王芬老师 阅读(102) 评论(0) 推荐(0) 编辑
摘要: getName(),$objB->getName()); 阅读全文
posted @ 2018-07-03 23:27 王芬老师 阅读(109) 评论(0) 推荐(0) 编辑
摘要: <?php class DB{ //私有属性,用来保存单例; private static $instance; //私有构造函数,阻止在类的外部实例化 private function __construct(){ } //私有克隆函数,阻止在类的外部克隆对象; private funct... 阅读全文
posted @ 2018-07-03 22:42 王芬老师 阅读(115) 评论(0) 推荐(0) 编辑
摘要: public static function sp_password($pw){ $decor=md5(Config::get("dbprefix")); $mi=md5($pw); return substr($decor,0,12).$mi.substr($decor,-4,4); } public static funct... 阅读全文
posted @ 2018-06-22 16:14 王芬老师 阅读(240) 评论(1) 推荐(0) 编辑
摘要: public function modify_icon() { $this->act_data['modify_icon']['desc'] = "修改头像"; //获取上传文件信息; $file = request()->file('file'); $filePaths = ROOT_PATH . 'public' . DS . ... 阅读全文
posted @ 2018-06-22 16:05 王芬老师 阅读(152) 评论(0) 推荐(0) 编辑