偷了个懒,代码扔在github上了。
用法也很简单:
$fetion = new PHPFetion('用户名','密码'); $fetion->send('对方手机','信息'); 会自动识别自己还是对方。(非好友不能发哦)
也实现了$fetion->multiSend,但我偷了个懒,直接循环用send发送了。
事实上,可以在刚登录的时候,利用group先将好友列表拉回来,然后就方便了。但觉得这样就复杂了。何必呢。。一般在用飞信的时候,也很少会用到群发功能吧。所以,我还是循环的send。黑黑
代码地址:https://github.com/neatstudio/yiiextension
欢迎围观
对于使用yii框架来说,如果使用bootstrap框架的话,现在有一个比较方便的使用途径:yiibooster。
官网地址是:http://yii-booster.clevertech.biz/
当然,我们都知道bootstrap几乎是不支持IE 6的。所以这时候,为了兼容IE6,还得冒出个:BSIE(鄙视IE),官方地址为:https://github.com/ddouble/bsie
有了这两样东西,开发起来是不是快了很多,至少你不用太关心页面是怎么做的了。而且变形,还没有那么夸张。更为可贵的是,你在手机上也能够正常浏览。
比如:http://photo.pinjian.net。就支持了手机浏览,只是界面难看了点罢了
看了一下5.5的更新。。原来5.5开始就放弃windows 2003了。那些想在2003上跑应用的人,要哭了
http://www.php.net/manual/en/migration55.new-features.php
Windows XP and 2003 support dropped
Support for Windows XP and 2003 has been dropped. Windows builds of PHP now require Windows Vista or newer.
添加了finally....
try-catch blocks now support a finally block for code that should be run regardless of whether an exception has been thrown or not.
foreach的时候,可以list了。不需要再$val[0]
The foreach control structure now supports unpacking nested arrays into separate variables via the list() construct.
empty() supports arbitrary expressions
Passing an arbitrary expression instead of a variable to empty() is now supported.
array and string literal dereferencing
Array and string literals can now be dereferenced directly to access individual elements and characters:
PHP代码
- <?php
- echo 'Array dereferencing: ';
- echo [1, 2, 3][0];
- echo "\n";
-
- echo 'String dereferencing: ';
- echo 'PHP'[0];
- echo "\n";
- ?>
还有一个:
New password hashing API
A new password hashing API that makes it easier to securely hash and manage passwords using the same underlying library as crypt() in PHP has been added. See the documentation for password_hash() for more detail.
额。难道以后的wordpress也可以直接用这个了?
笔记 ,phpmyadmin要管理多个数据库时,其实很方便 ,在config.inc.php里加入一行:
$cfg['AllowArbitraryServer'] = 1;
不过说实话,我现在都是直接用navicat的。navicat 确实方便。一般情况下,我都是用ntunnel.php来管理。自己用的时候,我是用shell方式的,方便轻松
其实sqlog其实也可以,也支持http方式 的连接。
不过,有时候没办法,还是得使用phpmyadmin所以,做了这个笔记 。
顺便说一下navicat,我的左侧管理已经满了。。。。