As far as I can tell, I have everything done right. X_x
I set the chmod of entries.db to 666, even to 777. Everything LOOKS fine.. but it isn't functioning fine.
Anyone know why this isn't working? @_@
http://unlikely.exofire.net/tag/
I believe the problem is in here, am I wrong? But I can't find it to fix it.
Code:<? $config = "config.php"; include $config; ?> <html><title></title><head><link rel="stylesheet" href="http://unlikely.exofire.net/style.css"> <meta http-equiv="refresh" content="<? echo "$refresh"; ?>"></head> <body topmargin="1" leftmargin="2"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td> <? if ($show == "limit") { $limits = $limit-1; if ($max) {} else { $max="$limits"; } if ($min) {} else { $min="0"; } $tag = file ("entries.db"); $count = "0"; while (list ($key, $val) = each ($tag)) { if ($key >= $min && $key <= $max) { $old = fopen ("entries.db", "r"); $old2 = fread ($old, filesize ("entries.db")); fclose ($old); $tosplit = "|"; $contarr = explode($tosplit,$val); $name = $contarr[0]; $comment = $contarr[1]; $website = $contarr[2]; $date = $contarr[3]; $ip = $contarr[4]; if ($website == "http://" || $website == "") { echo "$name$spacer $comment<br>"; } else { echo "<a href=\"$website\" target=\"_blank\">$name</a>$spacer $comment<br>"; } } $count++; } if ($min > 0) { $n_max = $max - 10; $n_min = $min - 10; } if ($count > $max) { $n_max = $max + 10; $n_min = $min + 10; } } if ($show == "all") { $limits = $limit-1; if ($max) {} else { $max="$limits"; } if ($min) {} else { $min="0"; } $tag = file ("entries.db"); $count = "0"; while (list ($key, $val) = each ($tag)) { if ($key >= $min && $key <= $max) { $old = fopen ("entries.db", "r"); $old2 = fread ($old, filesize ("entries.db")); fclose ($old); $tosplit = "|"; $contarr = explode($tosplit,$val); $name = $contarr[0]; $comment = $contarr[1]; $website = $contarr[2]; $date = $contarr[3]; $ip = $contarr[4]; if ($website == "http://" || $website == "") { echo "$name$spacer $comment<br>"; } else { echo "<a href=\"$website\" target=\"_blank\">$name</a>$spacer $comment<br>"; } } $count++; } echo "<center>"; if ($count == "0") { echo "<center>there is 0 entries in total"; } if ($count == "1") { echo "<center>there is 1 entry in total"; } if ($count >= "2") { echo "<center>there is $count entries in total<br><br>"; } if ($min > 0) { $n_max = $max - $limit; $n_min = $min - $limit; echo "<a href=\"tags.php?show=all&max=$n_max&min=$n_min\"><b>back</b></a> "; } if ($count > $max) { $n_max = $max + $limit; $n_min = $min + $limit; echo "<a href=\"tags.php?show=all&max=$n_max&min=$n_min\"><b>more</b></a>"; } echo "<br><a href=\"index.html\" target=\"blank\">back</a></center>"; } ?> </td> </tr></table></body></html>


LinkBack URL
About LinkBacks


Reply With Quote
