ilie88 Posted September 12, 2010 Share Posted September 12, 2010 Hi , i have a problem what's wrong in this php code please if somewan can help me thanks <?php $f1le = 'audio/includes/search.txt'; if(@filesize($f1le) > 1) { $fp0 = fopen($f1le, "r"); $howmuch = 10; $pos = -2; $hitung = 0; ?> <p> <?php //$crotz = "<ul>"; do { fseek($fp0, $pos, SEEK_END); $pos--; //$crotz .= fgetc($fp0); if(fgetc($fp0) == "\n") { //$crotz .= "<li>"; $no = $hitung + 1; $crotz .= '<li><div class="iteration">'.$no.'</div><a class="latest" href="'; $t3mp = fgets($fp0); $t3mp = str_replace('[keywords]:','',$t3mp); $t3mp = str_replace("\n","",$t3mp); $crotz .= "audio/index.php?search=".urlencode($t3mp)."&source=all"; $crotz .= "\">".htmlspecialchars($t3mp)."</a>"; if($hitung < ($howmuch-1)) $crotz .= "<div class='clear'></div></li>"; //$crotz .- '</li>'; $hitung++; } } while($hitung < $howmuch && !feof($fp0)); fclose($fp0); //$crotz .= "</ul>"; echo $crotz; } ?> </p> Quote Link to comment https://forums.phpfreaks.com/topic/213244-hi-i-need-some-help/ Share on other sites More sharing options...
Hypnos Posted September 12, 2010 Share Posted September 12, 2010 Can you explain what the problem is? Quote Link to comment https://forums.phpfreaks.com/topic/213244-hi-i-need-some-help/#findComment-1110344 Share on other sites More sharing options...
ilie88 Posted September 13, 2010 Author Share Posted September 13, 2010 Can you explain what the problem is? Hi, yes sorry for mi bad English , well the problem is that ar not showing only 1 tag i have limited to 10 tags and i don't get only 1 tag, in the search.txt file i have tags like this [keywords]:eminem and the code gets only 1 tag the last 1 why wat i can do it's something wrong wit the code ? Quote Link to comment https://forums.phpfreaks.com/topic/213244-hi-i-need-some-help/#findComment-1110499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.