<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[script immagini]]></title><description><![CDATA[<p dir="auto">Salve a tutti ho bisogno di un aiuto per uno script che visualizzidelle immagini.<br />
Vi spiego:<br />
deve prendere da una cartella le prime venti immagini e stamparle a video,<br />
poi con un bottone next aprire le venti consecutive e cosi via, se è possibile anche con un bottone back per le venti immagini precedenti<br />
Chi mi puo aiutare o dare qualche indicazione gle ne sarei grato<br />
Grazie</p>
]]></description><link>https://dev.connect.gt/topic/26243/script-immagini</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 04:45:13 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/26243.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jan 2007 21:11:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to script immagini on Mon, 05 Mar 2007 15:07:11 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Pennywise83</strong></p>
<p dir="auto">Ti avviso che non sono un esperto ma forse una soluzione veloce c'è</p>
<p dir="auto">$ls = glob("directory_dove_hai_le_foto/*");<br />
foreach ($ls as $filename) {<br />
echo '&lt;img src="'.$filename.'"&gt;;<br />
}</p>
<p dir="auto">In pratica questo script ti stampa un "&lt;img src" con il nome del file per ogni file presente nella directory, prova a documentarti sulla funzione glob per ampliare le funzionalità dello script.</p>
<p dir="auto">Ciao <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
</blockquote>
<p dir="auto">Grazie Penny<br />
la tua soluzione è semplice e funzionale<br />
Grande</p>
]]></description><link>https://dev.connect.gt/post/450550</link><guid isPermaLink="true">https://dev.connect.gt/post/450550</guid><dc:creator><![CDATA[izzyweb]]></dc:creator><pubDate>Mon, 05 Mar 2007 15:07:11 GMT</pubDate></item><item><title><![CDATA[Reply to script immagini on Mon, 05 Mar 2007 14:49:52 GMT]]></title><description><![CDATA[<p dir="auto">Ti avviso che non sono un esperto ma forse una soluzione veloce c'è</p>
<p dir="auto">$ls = glob("directory_dove_hai_le_foto/*");<br />
foreach ($ls as $filename) {<br />
echo '&lt;img src="'.$filename.'"&gt;;<br />
}</p>
<p dir="auto">In pratica questo script ti stampa un "&lt;img src" con il nome del file per ogni file presente nella directory, prova a documentarti sulla funzione glob per ampliare le funzionalità dello script.</p>
<p dir="auto">Ciao <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/450561</link><guid isPermaLink="true">https://dev.connect.gt/post/450561</guid><dc:creator><![CDATA[pennywise83]]></dc:creator><pubDate>Mon, 05 Mar 2007 14:49:52 GMT</pubDate></item><item><title><![CDATA[Reply to script immagini on Fri, 26 Jan 2007 12:24:33 GMT]]></title><description><![CDATA[<p dir="auto">Nessuno mi puo dare una mano????</p>
]]></description><link>https://dev.connect.gt/post/450549</link><guid isPermaLink="true">https://dev.connect.gt/post/450549</guid><dc:creator><![CDATA[izzyweb]]></dc:creator><pubDate>Fri, 26 Jan 2007 12:24:33 GMT</pubDate></item><item><title><![CDATA[Reply to script immagini on Wed, 24 Jan 2007 22:02:54 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>ienavr</strong></p>
<p dir="auto">non puoi usare una delle tante gallery gratuite già pronte e al massimo te la personalizzi? Qui c'è un elenco di 4 pagine ben fornito:</p>
<p dir="auto"><a href="http://php.html.it/script/lista/56/immagini-gallerie-e-slideshow/?ob=gd" rel="nofollow ugc">http://php.html.it/script/lista/56/immagini-gallerie-e-slideshow/?ob=gd</a></p>
</blockquote>
<p dir="auto">Ciao<br />
ho trovato questo script che fa quasi al caso mio....<br />
inserito in una cartella mi visualizza una immagine per volta e con i tasti next e back , vado avanti e indietro....<br />
Avrei da fargli una modifica,  ho bisogno di aprire 20 immagini per volta,<br />
chi mi può aiutare????<br />
Vi posto il codice<br />
Grazie</p>
<pre><code>&lt;?php
// PHPSlideShow v0.4 written by Greg Lawler

// v0.4 july 10 2001 - updated so that one script does multi directory slideshow
// v0.3.5 july 5 2001 - added options for image/no image navigation
// v0.3.4 april 19 2001 - added the "x of y" verbage (thanks patrick)
// v0.3.3 january 9 2001 - added a bit of code so that the pics.txt file is not essential.
// v0.3.1 september 29 2000 - added support for image buttons (thanks nicolas)
// v0.3 september 12 2000 - added support for comments (thanks jonathan)
// v0.2 august 28 2000
//
// from http://www.zinkwazi.com/pages.php?page_name=scripts
// Feel free to use/modify this little script
// email me at greg@zinkwazi.com if you write any improvements and
// want them included in the next version.
//
// IMPORTANT NOTE....
// if you want to send me a thankyou, starbucks coffee coupons are gladly accepted
// (http://www.starbucks.com ;)
// my address is:
// attention: greg's phpslideshow
// 801 alston road, santa barbara, ca 93108 usa
// otherwise it's free.
//
// this script comes with no implied warranty.
// 
// enjoy :)
// greg


// INSTALLATION INSTRUCTIONS
//
// ******* quick start
// put this file in a directory that contains your images
// the slideshow should now work...
//
// ******* how to add comments/descriptions to the slideshow
// make a file (e.g. pics.txt) that contains the image names and descriptions
// with each image name and description on a separate line separated by a semi colon.
// an easy way to do this is type
// ls *.jpg &gt; pics.txt in linux or
// dir *.jpg &gt; pics.txt in dos - you will need edit this with notepad/vi to clean
// out any extra stuff that dir puts in there and to add the semi colon and description.
// the slideshow should now work including comments...
//
// ******* how to use one slideshow for multiple different directories of images
// all you need to do to enable this is to call the script and pass it the directory
// path.
// eg http://your_url/phpslideshow.php?directory=dog_pics
// eg http://your_url/phpslideshow.php?directory=cat_pics
// eg http://your_url/phpslideshow.php?directory=extra/cat_pics
// these three examples will run phpslideshow but each one will load a different
// set of images located in the directories shown
//
// *** PLEASE use your own next and back images! i have included links to some on my
// server so you can get up and running quickly... change them once your page is
// working.
//
// EXAMPLE optional pics.txt FILE
//
// greg.jpg;Me
// dog.JPEG;My dog John
// cat;
// tux.Jpg;My friend Tux
//
// NO BLANK LINES either!
// as you can see, not all pics need a description but the ";" is a MUST!
// point your browser at the script and voilla!
//
//
//////////////////////////////////////////////////////////////////////////////
// variables, modify at will
//
$pic_info_file="pics.txt";
$header = "&lt;a href=http://www.zinkwazi.com/pages.php?page_name=scripts&gt;PHPSlideshow&lt;/a&gt;";
$title = "PHPSlideshow";

// set this to true to display the image name below the image...
$show_image_name = "false";

// change to true to display icons instead of text...
// please use your own next and back images!
$show_navigation_images = "true";
$back_image="http://www.izzyweb.it/img_articoli/freccia3.gif"; 
$next_image="http://www.izzyweb.it/img_articoli/freccia4.gif";
//
//
//////////////////////////////////////////////////////////////////////////////

// html stuff, replace with your sites include() header file e.g.
// include("/home/httpd/html/header.php");
print "&lt;html&gt;&lt;head&gt;&lt;title&gt;$title&lt;/title&gt;";
print "&lt;style type=\"text/css\"&gt;";
print "body { font-family: verdana; font-size: 14px; }";
print "a { font-family: verdana; font-size: 14px; text-decoration: none}";
print "&lt;/style&gt;&lt;/head&gt;";
print "&lt;body&gt;";
print "&lt;center&gt;";
print "&lt;b&gt;$header&lt;/b&gt;&lt;br&gt;";

// this part does the work and should need no editing
	if ($directory == "") $directory = ".";
	if ($show_navigation_images == "true") {
	$back_src = "&lt;img src=$back_image alt=back border=0&gt;";
	$next_src = " &lt;img src=$next_image alt=next border=0&gt;";
}
else {
	$back_src = "&lt;b&gt;Back&lt;/b&gt;";
	$next_src = "&lt;b&gt;Next&lt;/b&gt;";
}	

  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 &gt; $number_of_pics) || ($phpslideshow == $number_of_pics) || !$phpslideshow)
    $phpslideshow = '0';
  $item = explode (";", $pic_info[$phpslideshow]);

  // print the description
  print "&lt;b&gt;$item[1]&lt;/b&gt;&lt;br /&gt;";


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

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

  $last = $number_of_pics -1;
  if ($phpslideshow == $last)
  {
	print "&lt;a href=$PHP_SELF?phpslideshow=$back&amp;directory=$directory&gt;
	$back_src&lt;/a&gt;&amp;nbsp;&amp;nbsp; ";

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

	print "&lt;a href=$PHP_SELF?phpslideshow=$next&amp;directory=$directory&gt;
	$next_src&lt;/a&gt;&lt;br&gt;";
  }
  elseif ($phpslideshow &gt; 0 )
  {
	print "&lt;a href=$PHP_SELF?phpslideshow=$back&amp;directory=$directory&gt;
	$back_src&lt;/a&gt;&amp;nbsp;&amp;nbsp; ";

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

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

	print "&lt;a href=$PHP_SELF?phpslideshow=$next&amp;directory=$directory&gt;";
	print "$next_src&lt;/a&gt;&lt;br&gt;";
  }

//  print the image link
  print "&lt;img src=\"$directory/$item[0]\"&gt;&lt;br&gt;&amp;nbsp;&lt;br&gt;";

if ( $show_image_name == "true" ) {
	print "$item[0]";
}
// the following line can be commented out if you want to display the full-size image 
// located in a directory called uncut in the same directory as the slideshow...
// print "&lt;a href=\"uncut/$item[0]\" target=new&gt;This picture unscaled&lt;/a&gt;&lt;br&gt;";

// end of "work"
//
// html stuff, replace with your sites include() footer file
// include("/home/httpd/html/footer.inc");

print "&lt;/CENTER&gt;&lt;/BODY&gt;&lt;/HTML&gt;";

?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/450548</link><guid isPermaLink="true">https://dev.connect.gt/post/450548</guid><dc:creator><![CDATA[izzyweb]]></dc:creator><pubDate>Wed, 24 Jan 2007 22:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to script immagini on Wed, 24 Jan 2007 08:27:59 GMT]]></title><description><![CDATA[<p dir="auto">non puoi usare una delle tante gallery gratuite già pronte e al massimo te la personalizzi? Qui c'è un elenco di 4 pagine ben fornito:</p>
<p dir="auto"><a href="http://php.html.it/script/lista/56/immagini-gallerie-e-slideshow/?ob=gd" rel="nofollow ugc">http://php.html.it/script/lista/56/immagini-gallerie-e-slideshow/?ob=gd</a></p>
]]></description><link>https://dev.connect.gt/post/450547</link><guid isPermaLink="true">https://dev.connect.gt/post/450547</guid><dc:creator><![CDATA[ienavr]]></dc:creator><pubDate>Wed, 24 Jan 2007 08:27:59 GMT</pubDate></item></channel></rss>