Problem jest tego typu że mam jakis tam skrypt galerii ktory dzieli fajnie na stroni wyswietlane pkiki, jest to do tapetek na komorki, normalnie pliki z folderu. jednak ładuje on pliki z katalgou ktory sie znajduje jak zmodyfikowac ten plik żeby pobieral obrazki z okreslonej ścieżki, porobowalem juz rozmnych rzeczy ale mi nie wychodzi, jak ktoś moze podac co i jak zmienic np zeby pobieralo z folderu obrazki dzięki
<?
$conf["items_per_page"] = 60;
if (!isset($page)) {$page = 0;} $total = 0;
if(!($dp = opendir("./"))) die ("Cannot open ./"); {
if(substr($file,0,1) != '.' and
$file != "index.php") {
$file_array[] = $file;
}
}
$file_count = count ($file_array); ?>
<p mode="nowrap">
<?
if ($file_count > 0)
{
$first_record = $page * $conf["items_per_page"];
$last_record = $first_record + $conf["items_per_page"];
while (list
($fileIndexValue, $file_name) = each ($file_array)) {
if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record))
{
echo "<img src=\"$file_name\" title=\"". round(filesize($file_name)/1024,1) . " kB // $file_name\" qsms.pl></a> ";
}
}
echo "<br /><table><td width=\"55\">";
if (($file_count > 0) AND ($page != 0))
{
// previous button
$prev_page = $page -1;
echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">Poprzednie</a>"; }
echo "<td><td width=80><center><a href=\"../index.php\">Powrót</a></center><td width=\"50\">";
if (($file_count > 0) AND ($last_record < $file_count))
{
// next button
$next_page = $page + 1;
echo "<a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">Następne</a>"; }
echo "</table><br/><br/><table><td width=\"150\">Znaleziono: <b>$file_count</b> "; if ($file_count == 1)
else
echo "</td><td>[<b>" . round($total/1024,1) . " kb</b>]</table>"; }
?>
----------
Prosze uzywac [ php ] dla kodu php.
-- dr_bonzo