谁帮我看看我的相对路劲怎么错了,晕 .php文件在F:\PHPNOW\htdocs下面图片在F:\PHPNOW\htdocs\image\number用代码段<IMG SRC=image/number/1.gif这样引用对吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 win 下不错linux 下得 <IMG SRC="./image/number/1.gif" > 主要是自己弄了一个图片计数器,我的是win7,现在不行,能帮我看看吗?<title>图形访问计数器</title><?php//基于文本的计数器$counterFile = "counter.txt";function ntog($number) //将数值转换为字符串{ $s = (string)$number; $g = ""; for($i=0;$i<strlen($s);$i++) { $g = $g."<IMG SRC=/image/number/".substr($s,$i,1)."gif>"; } return $g;}function disp($counterFile){ $fp = fopen($counterFile,"rw"); $num = fgets($fp,6); fclose($fp); $num += 1; echo "您是本站的第".ntog($num)."位访客"; exec("rm -rf $counterFile"); exec("echo $num > $counterFile"); } if(!file_exits($counterFile)) { exec("echo 0 > $counterFile"); } disp($counterFile);<img src="image/number/2.GIF" alt="dsf" width="15" height="20">?> 把exec禁了吧。换个思路来做计数器,想把这个用批处理写到文件里。在实际用的时候可能不安全。 php搜索结果查询,搜索内容传递的问题,请问各位高手怎么改!!谢谢啊 关于排序比例,求思路 就40分了!问个关于HTTPS的问题! PHP排序疑问 PHP动态取得的数组值如何传入javascript?? 急!!请问php中是否可以接收来自c程序往消息队列中放的消息 吐血跪求PHP模板--Smarty的详细语文章! 请问php中怎样把图片写到mysql数据库中?或者存到某个文件夹中 ubuntu service 连不上Mysql 老话题了,不得不再问一下include和require yahoo-api 2层foreach套用如何逐步优化加载? 求高手指导淘宝商品快递费抓取!
linux 下得 <IMG SRC="./image/number/1.gif" >
<title>图形访问计数器</title>
<?php
//基于文本的计数器
$counterFile = "counter.txt";
function ntog($number) //将数值转换为字符串
{
$s = (string)$number;
$g = "";
for($i=0;$i<strlen($s);$i++)
{
$g = $g."<IMG SRC=/image/number/".substr($s,$i,1)."gif>";
}
return $g;
}function disp($counterFile)
{
$fp = fopen($counterFile,"rw");
$num = fgets($fp,6);
fclose($fp);
$num += 1;
echo "您是本站的第".ntog($num)."位访客"; exec("rm -rf $counterFile");
exec("echo $num > $counterFile");
}
if(!file_exits($counterFile))
{
exec("echo 0 > $counterFile");
}
disp($counterFile);
<img src="image/number/2.GIF" alt="dsf" width="15" height="20">
?>