我们在开发项目中南面使用到session给和cookie,那么在yii中有他自己的规则 如下案例: session使用 function actionS1(){ echo $this->id." "; echo $this->action->id." "; 设置session,通过session组件 Read More
posted @ 2016-06-03 14:05 不解凡忧 Views(1065) Comments(0) Diggs(0) Edit
1、php.ini中去掉php_openssl.dll前面的“;” 2、注意phpstudy中php版本使用5.4n 3、环境OK后,使用自己的域名访问下yii2.0中advanced中的requirems.php文件查看是否合格,全蓝或全绿代表OK!!只要没有红色警告就行 4、接下来进行yii2. Read More
posted @ 2016-06-03 09:06 不解凡忧 Views(198) Comments(0) Diggs(0) Edit
PHP语言中的字符串函数也是一个比较易懂的知识。今天我们就为大家总结了将近12种PHP字符串函数,希望对又需要的朋友有所帮助,增加读者朋友的PHP知识库。 1、查找字符位置函数 strpos($str,search,[int]):查找search在$str中的第一次位置从int开始; stripos Read More
posted @ 2016-06-03 08:29 不解凡忧 Views(149) Comments(0) Diggs(0) Edit