个人博客网站解决方案

WBOY
Release: 2016-06-13 12:17:57
Original
1084 people have browsed it

个人博客网站
在调试【个人博客网站】的时候,php代码出现了些问题,望大师指导啊
------解决思路----------------------
第一个是因为你传入的不是字符串,提示你传入的是数组;第二个和第三个是说你数组中不存在这两个索引。
------解决思路----------------------
1.strlen少参数
解决方法:可以看手册检查参数少了什么。
2.变量$img没有赋值就使用。
解决方法:在页面最顶先初始化一下。$img='';
3.变量$pic没有赋值就使用。
解决方法:在页面最顶先初始化一下。$pic='';
------解决思路----------------------
$word = strlen($str);
应为
$word = count($str);
其后加上
$img = $pic = '';

$info[title]
改为
$info['title']


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!