Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Fragment kodu - pomocy !!
Lipas
post 17.01.2003, 16:17:47
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 17.09.2002

Ostrzeżenie: (0%)
-----


Czy ktos z Was potrafi mi wytlumaczyc, w jaki sposob dziala ta funkcja, a w zasadzie, dlaczego nie dziala questionmark.gif
wywala sie po dotarciu do miejsca oznaczonego na czerwono ohmy.gif
POMOCY.

function buildNewsfile () {
global $hostdir, $newsfile, $rowResultsArray;

$newsfile = array();
$td = dir($hostdir."database/articles/");
while ($filename = $td->read()) {
$s = strtolower($filename);
if (('.'.fileExt($s)) == ".txt") {
$story = getStory($hostdir."database/articles/".$filename);
$last = $hostdir."database/articles/".$filename;
$newsfile[$filename] = $last;
}
arsort($newsfile);
}

$rowResultsArray=array();
for(reset($newsfile); $key = key($newsfile); next($newsfile)) {
$rowResultsArray[] = key($newsfile);
}
}
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:44