谁帮我看看我的相对路劲怎么错了,晕 .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禁了吧。换个思路来做计数器,想把这个用批处理写到文件里。在实际用的时候可能不安全。 网站首页打开很慢,请教是何原因 求去除空格方法 该用哪些套件开发嵌入世系统的web界面 PHP新手,求教大神!! 看看这个报错提示!!望高手解答! 初学PHP者的困惑,希望大家帮帮我,否则我学不下去了!!!! php如何接收flash用post方式发送过来的参数 请推荐php教程. 算法问题 form表单上传图片上传不了 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">
?>