随笔分类 -  php

上一页 1 2
yii2.0 Activeform表单部分组件使用方法
摘要:文本框:textInput();密码框:passwordInput();单选框:radio(),radioList();复选框:checkbox(),checkboxList();下拉框:dropDownList();隐藏域:hiddenInput();文本域:textarea(['rows'=>3... 阅读全文
posted @ 2015-12-22 23:48 袁晓平 阅读(367) 评论(0) 推荐(0)
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)
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)
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)
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)

上一页 1 2