$dir = image::get_dir($thread['uid']);
$thread['avatar'] = file_exists($img = $this->conf['upload_url'].'avatar/'.$dir.'/'.$thread['uid'].'_middle.gif') ? $img : NULL;$img实际的内容类似于 http://localhost/xiuno/upload/avatar/000/000/4_middle.gif file_exists()判断的结果为false,因为$thread['avatar']赋值为NULL,为什么呢?哪里不对啊
$thread['avatar'] = file_exists($img = $this->conf['upload_url'].'avatar/'.$dir.'/'.$thread['uid'].'_middle.gif') ? $img : NULL;$img实际的内容类似于 http://localhost/xiuno/upload/avatar/000/000/4_middle.gif file_exists()判断的结果为false,因为$thread['avatar']赋值为NULL,为什么呢?哪里不对啊
解决方案 »
- 我的网站放在iis上面出现了这些错误提示,我很纠结求助
- 请教一个用php能得到google查询数据吗
- 高手来见识一下
- 大家看看太平洋的这个页面..怎么实现
- NetGou Shopping Cart Version 2.5.0Beta,安装出错!!请高手指教!!100分
- 各位帮忙看一下这个PHP错,较急,谢谢了。
- 初学php,求一段查询代码
- 求助:字符串比较问题
- 写了半年php,想以之虎口,但只会php很难找工作,php应用还是没有asp多,本来想近一步学习net或java,但必须先养活自己,为了迎合市场我不
- 如何在网页中运行 .exe 文件
- 求怎样解决fsockopen函数,错误
- apache启动问题
看一下是 http://localhost/xiuno/upload/avatar/000/000/4_middle.gif 吗?
还有检查 xiuno/upload/avatar/ 文件夹的权限。