Ciao,
ho un problema con uno scriptino stupidissimo...
Vorrei prendere una lista di immagini da alcune cartelle specifiche, e crere una gallery con anteprime e foto ingrandite.
Lo script lo usavo anni fa su un server banalissimo in Linux, ora su un'altro server sempre linux non funziona (ho impostato opportunamente già le path).
Il problema è che non dà nessun tipo di errore, però nemmeno nessun output...non riesco a capire dov'è l'errore...

Ho provato quindi con questo script che ho preso da un sito, anche questo non va... http://perroquet.it/foto

codice:
<?
// this part does the work and should need no editing
	if ($directory == "") $directory = ".";
	if ($show_navigation_images == "true") {
	$back_src = "<img src=$back_image alt=back border=0>";
	$next_src = " <img src=$next_image alt=next border=0>";
}
else {
	$back_src = " INDIETRO ";
	$next_src = " AVANTI ";
}	

  if ( !file_exists("$directory/$pic_info_file"))
  {
        $dh = opendir( "$directory" );
        while( $file = readdir( $dh ) )
        {
                if (    ereg("jpg$",$file) || ereg("JPG$",$file) ||
                        ereg("jpeg$",$file) || ereg("JPEG$",$file) ||
                        ereg("jpeg$",$file) || ereg("JPEG$",$file) ||
                        ereg("gif$",$file) || ereg("GIF$",$file) ||
                        ereg("png$",$file) || ereg("PNG$",$file) ||
                        ereg("Jpg$",$file) || ereg("Jpeg$",$file) )
                {
                        $pic_info[] = $file;
                }
        }
  }
  else $pic_info=file("$directory/$pic_info_file");


  $number_of_pics = count ($pic_info);
  if (($phpslideshow > $number_of_pics) || ($phpslideshow == $number_of_pics) || !$phpslideshow)
    $phpslideshow = '0';
  $item = explode (";", $pic_info[$phpslideshow]);

  // print the description
  print "$item[1]
";


  $next = $phpslideshow + 1;
  if ($phpslideshow > 0 ) $back = $phpslideshow - 1;
  else $phpslideshow = '0';

  // print the next and back links (note &lt; and &gt; to display <> in HTML)

  $last = $number_of_pics -1;
  if ($phpslideshow == $last)
  {
	print "<a href=$PHP_SELF?phpslideshow=$back&directory=$directory>
	$back_src</a> ";

	// comment out or delete the following line to remove the position message...
	print "$next of $number_of_pics";

	print "<a href=$PHP_SELF?phpslideshow=$next&directory=$directory>
	$next_src</a>
";
  }
  elseif ($phpslideshow > 0 )
  {
	print "<a href=$PHP_SELF?phpslideshow=$back&directory=$directory>
	$back_src</a> ";

	// comment out or delete the following line to remove the position message...
	print "$next of $number_of_pics ";

	print "<a href=$PHP_SELF?phpslideshow=$next&directory=$directory>";
	print "$next_src</a>
";
  }
  else
  {
	// comment out or delete the following line to remove the position message...
	print "$next of $number_of_pics ";

	print "<a href=$PHP_SELF?phpslideshow=$next&directory=$directory>";
	print "$next_src</a>
";
  }

//  print the image link
  print "<img src=\"$directory/$item[0]\">

";

if ( $show_image_name == "true" ) {
	print "$item[0]";
}


?>
Grazie, auguri.