10 2015 档案
linux 服务自动调用
摘要:php服务地址:http://192.168.2.117/web/index.php/buy/auctionselect编写脚本service.sh,内容:#! /bin/shcrulhttp://192.168.2.117/web/index.php/buy/auctionselect保存,chm... 阅读全文
posted @ 2015-10-31 19:29 袁晓平 阅读(270) 评论(0) 推荐(0)
linux定时任务的设置
摘要:为当前用户创建cron服务1. 键入 crontab -e 编辑crontab服务文件 例如 文件内容如下: */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh 保存文件并并退出*/2 * * * * /bin/sh /home/adm... 阅读全文
posted @ 2015-10-29 22:08 袁晓平 阅读(1071) 评论(0) 推荐(0)
php yii .htaccess
摘要:RewriteEngine on# if a directory or a file exists, use it directlyRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# otherwise fo... 阅读全文
posted @ 2015-10-27 15:32 袁晓平 阅读(308) 评论(0) 推荐(0)
javascript倒计时代码
摘要:其实就是用两个时间戳相减,余数转换为日期,就是所剩的年月日时分秒,不过年份-1970$scope.timerID = null; $scope.timerRunning = false;$scope.showtime = function() { if ($scope.data === un... 阅读全文
posted @ 2015-10-17 21:53 袁晓平 阅读(377) 评论(0) 推荐(0)
php yii多表查询
摘要:一个Company记录可以对应多个CompanyUser纪录Company表:[['id', 'nature_id', 'scale_id', 'pro_id', 'created_at', 'updated_at'], 'integer'], [['id','company_... 阅读全文
posted @ 2015-10-15 18:33 袁晓平 阅读(175) 评论(0) 推荐(0)
php通过curl调用jpush接口实现消息的推送
摘要:public function actionNotifyto() { //$regid = $_REQUEST['regid']; $url = 'https://api.jpush.cn/v3/push'; //调用接口的平台服务地址 //$post_string = array('pla... 阅读全文
posted @ 2015-10-13 15:28 袁晓平 阅读(1158) 评论(0) 推荐(0)
android调用JPush获取手机的注册码(Cordova环境)
摘要:JPushInterface.addLocalNotification(cordova.getActivity().getApplication().getApplicationContext(), ln);String regId = JPushInterface.getRegistrationI... 阅读全文
posted @ 2015-10-13 15:28 袁晓平 阅读(594) 评论(0) 推荐(0)
qq互联(connect.qq.com)取用户信息的方法
摘要:error)){echo "error:" . $msg->error;echo "msg :" . $msg->error_description;exit;}}//Step3:使用Access Token来获取用户的OpenID$params = array();parse_str($respo... 阅读全文
posted @ 2015-10-10 14:15 袁晓平 阅读(5977) 评论(0) 推荐(0)
ionic安装拍照选照片插件
摘要:1、安装插件,也可以用ionic plugin add ....phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.gitphonegap local plugin add h... 阅读全文
posted @ 2015-10-06 00:40 袁晓平 阅读(1117) 评论(0) 推荐(0)