CODE
{ print(" title=\"" . $pr_d2[at] . "\""); } print(">" . $pr_d2[tytul] . "</a>"); if($pr_d2[tytul_b] == 1) { print("</b>"); } if($pr_d2[tytul_i] == 1) { print("</i>"); }
Chciałbym wkleić do tego kodu wczytywanie losowe z pliku tekstowego dodatkowych słów kluczowych w tagu "title".
Normalna funkcja include nie działa...
Proszę o pomoc, nie jestem asem w PHP
Kod wczytywania
CODE
<?
$quotes = file('rand_kluczowe.txt');
$total = count($quotes);
$random = (rand() % $total);
$quote = "$quotes[$random]";
echo "$quote";
?>
$quotes = file('rand_kluczowe.txt');
$total = count($quotes);
$random = (rand() % $total);
$quote = "$quotes[$random]";
echo "$quote";
?>