随笔分类 -  PHP

1 2 3 4 5 ··· 18 下一页
网站语言
摘要:最终效果图。 一步一步完全按照步骤,轻松在微信公众号自定义菜单中添加图标。 第一步:打开PHP网页列表 http://code.iamcal.com/php/emoji/第二步:选择代码表中softbank列代码,复制,例如U+E536 第三步:代码复制到记事本里,并在记事本中修改代码为“\ue53 阅读全文
posted @ 2016-06-15 14:05 幻星宇 阅读(29107) 评论(0) 推荐(0) 编辑
摘要:经测试,Android拍照的 Orientation 属性都是1,判断不出是否被旋转了。 阅读全文
posted @ 2016-01-07 12:04 幻星宇 阅读(1851) 评论(0) 推荐(0) 编辑
摘要:appid = $appid; $this->secrect = $secrect; $this->accessToken = $this->getToken($appid, $secrect); } /** * 发送post请求 * @pa... 阅读全文
posted @ 2015-12-04 18:54 幻星宇 阅读(2252) 评论(0) 推荐(0) 编辑
摘要:装了wampserver64位,里面的php是5.5,apache是2.41.配置虚拟主机时碰到问题:apache AH01630: client denied by server configuration解决方案如下:apache2.2的写法: ServerName fdipzone.demo.... 阅读全文
posted @ 2015-12-03 14:17 幻星宇 阅读(337) 评论(0) 推荐(0) 编辑
摘要:1.下载:http://pecl.php.net/package/redis/2.2.7/windows2.下载后由于里面有两个模块分别是vc6,vc9编译的,我们需要知道我们的Php是vc6还是vc9的:新建一个reids.php点击(此处)折叠或打开3.安装模块把php_redis.dll模块放... 阅读全文
posted @ 2015-11-18 16:15 幻星宇 阅读(400) 评论(0) 推荐(0) 编辑
摘要:步骤:1.创建一个Hello World模块2.为这个模块配置路由3.为这个模块创建执行控制器创建Hello World模块创建模块的结构目录:app/core/local/Sjolzy/HelloWorld/Blockapp/core/local/Sjolzy/HelloWorld/control... 阅读全文
posted @ 2015-09-15 21:25 幻星宇 阅读(264) 评论(0) 推荐(0) 编辑
摘要:_init();}protected function _init(){$this->_store=Mage::app()->getStore();$this->_baseUrl=Mage::getBaseUrl();}public function getAllCategory(){$parent... 阅读全文
posted @ 2015-09-14 23:18 幻星宇 阅读(194) 评论(0) 推荐(0) 编辑
摘要:1.加载某个attribute: $attributeCode=Mage::getModel('catalog/resource_eav_attribute') ->load($attrbuteId) ->getData("attribute_code")... 阅读全文
posted @ 2015-09-10 10:10 幻星宇 阅读(257) 评论(0) 推荐(0) 编辑
摘要:对于命名空间,官方文档已经说得很详细[查看],我在这里做了一下实践和总结。命名空间一个最明确的目的就是解决重名问题,PHP中不允许两个函数或者类出现相同的名字,否则会产生一个致命的错误。这种情况下只要避免命名重复就可以解决,最常见的一种做法是约定一个前缀。例:项目中有两个模块:article和mes... 阅读全文
posted @ 2015-09-09 10:10 幻星宇 阅读(364) 评论(2) 推荐(0) 编辑
摘要:http://www.bubuko.com/infodetail-1062014.html要完成手机APP跳转到微信的APP进行微信支付,需要进行如下操作:1、先去微信的开放平台(http://open.weixin.qq.com)进行开发者账号的注册。2、新建一个APP应用,然后填写必填信息提交审... 阅读全文
posted @ 2015-09-07 10:21 幻星宇 阅读(783) 评论(0) 推荐(2) 编辑
摘要:1. 地址保存 $_custom_address = array ( 'firstname' => 'Branko', 'lastname' => 'Ajzele', 'street' => array ( '0' => 'Sample address part1',... 阅读全文
posted @ 2015-09-06 21:44 幻星宇 阅读(520) 评论(0) 推荐(0) 编辑
摘要:magento判断用户登录Magento 登陆之后返回登录之前的页面magento 在登陆后一般会自动跳转到 My Account 页面但是经常会有需求 就是登陆自动跳转到 之前的页面里面工具/原料php+mysql+apache方法/步骤只要加代码Mage::getSingleton('custo... 阅读全文
posted @ 2015-09-06 21:43 幻星宇 阅读(420) 评论(0) 推荐(0) 编辑
摘要:上次做项目的时候,遇到 查询结果为 数组。因为条件原因,需要用$where['_string'] 去组合查询。进而用到把数组变成单引号的字符串。举例:查询返回的数组为:$projectcode_array = ["20130719","20130718","20130717"];通过function... 阅读全文
posted @ 2015-08-30 16:19 幻星宇 阅读(3109) 评论(0) 推荐(0) 编辑
摘要:jsapi中跳转到微信支付中触发的方法是js中的getBrandWCPayRequest方法。改方法中的返回结果msg提示信息如下:err_msg:get_brand_wcpay_request:ok 支付成功 get_brand_wcpay_request:cancel 支付过程中用户取消 ge... 阅读全文
posted @ 2015-08-24 16:33 幻星宇 阅读(1992) 评论(2) 推荐(0) 编辑
摘要:在CentOS 6.x 的系统中,是集成xdebug 的,yum install php-pecl-xdebug如果是CentOS.5 也可能通过安装安装 epel 来安装rpm -ivhhttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-relea... 阅读全文
posted @ 2015-07-29 18:22 幻星宇 阅读(461) 评论(0) 推荐(0) 编辑
摘要:1.下载对应的接口demo,注意退款有无密和有密2.根据接口代码编写,要注意notify_url和return_url不能带有额外参数,并且notify_url中途不能含有跳转,否则post数据会丢失3.密钥的配置,根据openssl生成密钥和私钥,同时在账号里面根据要求配置好。alipay公钥是固... 阅读全文
posted @ 2015-07-29 17:58 幻星宇 阅读(205) 评论(0) 推荐(0) 编辑
摘要:错误描述:#yum install libmcrypt libmcrypt-devel mcrypt mhashSetting up Install ProcessNo package php-mcrypt available.Error: Nothing to do我们会看到centos yum从... 阅读全文
posted @ 2015-07-29 10:58 幻星宇 阅读(3829) 评论(0) 推荐(0) 编辑
摘要:最近做一个关于价格的程序时,碰到了一个很奇怪的问题。我把问题给抓出来了。请看如下代码: 你会发现,echo出来的结果居然不是0,而是5.3290705182E-15。思索了半天,也没找到是什么原因。用了C语言试了一下,结果正常。同事说他以前也遇到过,估计是超出了PHP的实数范围。 解决方法,由于... 阅读全文
posted @ 2015-07-23 11:24 幻星宇 阅读(821) 评论(0) 推荐(0) 编辑
摘要:手册地址:https://phpunit.de/manual/current/zh_cn/phpunit-book.html#test-doubles.mock-objects 阅读全文
posted @ 2015-07-03 14:14 幻星宇 阅读(148) 评论(0) 推荐(0) 编辑
摘要:Security.class.php文件 1 ', '', 6 "'", '"', '&', '$', '#', 7 '{', '}', '[', ']', '=', 8 ';', '?', '%20', '%22', 9 '... 阅读全文
posted @ 2015-06-26 17:15 幻星宇 阅读(698) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 18 下一页
点击右上角即可分享
微信分享提示