php
文章平均质量分 52
大林在努力
一步一步向前走。
展开
-
php 常用函数
implode() 函数把数组元素组合为一个字符串。 例:implode('|', $arrays) explode() 函数把字符串分割为数组。 例:explode('|', $string_test) 注:第一个参数不能是空字符串。如果第一个参数为空字符串(""),explode() 将返回 false。如果第一个参数所包含的值在对象字符串中找不到,那么 explode()原创 2013-11-10 10:27:11 · 719 阅读 · 0 评论 -
ubuntu nginx + php 配置
安装mysql sudo apt-get install mysql-server 安装nginx sudo apt-get install nginx 安装php5 sudo apt-get install php5-fpm sudo /etc/init.d/nginx start 启动服务,在浏览器输入http://localhost,成功返回页面则继续下面原创 2013-11-10 10:35:47 · 1040 阅读 · 0 评论 -
Apache:the requested operation has failed!
打开cmd,进入Apache安装目录下的bin目录,原创 2014-04-05 18:51:32 · 675 阅读 · 0 评论 -
Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings.
找到PHP安装目录,打开php.ini或者php.ini-development。转载 2014-04-22 21:32:46 · 869 阅读 · 0 评论 -
最新天气预报接口【2015-05-14改】
国家气象局链接例子:http://m.weather.com.cn/data/101010100.html 【 101010100 为城市代码】 返回的数据是json数据。 {"weatherinfo":{"city":"北京","city_en":"beijing","date_y":"2013年8月20日","date":"","week":"星期二","fchh":"18","cit原创 2013-11-10 10:30:59 · 6132 阅读 · 0 评论