点击这里给我发消息 点击这里给我发消息
摘要: 解决交叉编译环境错误:/lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录yum install ld-linux.so.2即可。。# arm-linux-gcc hello.c -o tt/home/gl/usr/local/arm/4.3.2/bin/arm-linux-gcc: /home/gl/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录/home/gl/usr/local/arm 阅读全文
posted @ 2013-03-31 00:43 Chri 阅读(3166) 评论(0) 推荐(0) 编辑
摘要: 微信公众平台搭建之三(Ip查询)接上文欢迎关注baiducha(baidu)这次增加一个身份证号查询,使用有道接口function youdao_ID($word){$ydapi = "http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=id&q=".$word;$fetch = new SaeFetchurl();$content = $fetch->fetch($ydapi);$content = iconv("GBK","UTF-8" 阅读全文
posted @ 2013-03-26 20:44 Chri 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 微信公众平台搭建之二(手机号归属)接上文,增加一个IP查询功能调用新浪接口查IP,function city_ip($ip) {$url = 'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=' . $ip;$f = new SaeFetchurl();$str = $f->fetch($url);preg_match('|var remote_ip_info =(.*)\;|',$str,$ar);$obj = json_decode($ar[1]);$city =$ 阅读全文
posted @ 2013-03-25 16:40 Chri 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 微信公众平台搭建之一(单词翻译)接上文,增加一个手机归属查询。公众账号:baiducha下面是使用淘宝提供的接口查询手机号归属:function taobao_m($word){ $tmapi = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$word; $fetch = new SaeFetchurl(); $content = $fetch->fetch($tmapi); $content = iconv("gb18030","UTF-8",$con 阅读全文
posted @ 2013-03-25 16:26 Chri 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 谢谢关注公众账号:baiducha 首先去官网注册,填写相关信息,并设置为开发者模式以及下载开发示例。 将文档上传至自己的空间,我用的是新浪的SAE。通过验证后,注释掉 示例代码中德$wechatObj->valid();并加上$wechatObj->responseMsg();//$wechatObj->valid();$wechatObj->responseMsg();找到if(!empty( $keyword )){} 在这里处理用户发来的信息。。。先来实现一个简单的单词翻译功能。 $contentStr = youdao($keyword);//用户... 阅读全文
posted @ 2013-03-21 22:56 Chri 阅读(276) 评论(0) 推荐(0) 编辑